Skip to content

fix: reject zero-column table creation#79

Merged
zfarrell merged 1 commit intomainfrom
fix/zero-column-tables
Feb 27, 2026
Merged

fix: reject zero-column table creation#79
zfarrell merged 1 commit intomainfrom
fix/zero-column-tables

Conversation

@zfarrell
Copy link
Contributor

Summary

  • Reject tables with zero columns in set_columns() and begin_write_transaction()
  • Returns InvalidConfig error before any database operations

Test plan

  • Zero-column table creation fails with clear error message
  • Normal table creation still works
  • cargo test --features write-sqlite

🤖 Generated with Claude Code

- Add columns.is_empty() check in set_columns() and begin_write_transaction()
- Returns clear error: "Table must have at least one column"

Found during Feb 2026 security review

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@zfarrell zfarrell merged commit 59eb3da into main Feb 27, 2026
3 checks passed
@zfarrell zfarrell deleted the fix/zero-column-tables branch February 27, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant