Skip to content

create_constraint "NOT NULL" generates no SQL#75

Merged
roed314 merged 1 commit into
roed314:masterfrom
roed-math:fix/notnull-spelling
Jul 20, 2026
Merged

create_constraint "NOT NULL" generates no SQL#75
roed314 merged 1 commit into
roed314:masterfrom
roed-math:fix/notnull-spelling

Conversation

@roed-math

Copy link
Copy Markdown

_valid_constraint_types accepts "NOT NULL", but both statement builders and the column-count guard compared against a misspelled "NON NULL" — so the accepted constraint type produced None instead of a statement, failing later with a confusing psycopg2 error. All three sites now spell it the way the validator does.


Split out of #60 (one PR per issue). This branch carries only this issue's fix and its tests; the rest of the known-bug inventory stays xfailed, so the full suite is green here and the strict markers guarantee no cross-issue leakage.

_valid_constraint_types accepts "NOT NULL", but both statement builders and the column-count guard compared against a misspelled "NON NULL" — so the accepted constraint type produced None instead of a statement, failing later with a confusing psycopg2 error. All three sites now spell it the way the validator does.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@roed314
roed314 merged commit e83e834 into roed314:master Jul 20, 2026
16 checks passed
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.

2 participants