Skip to content

PostgreSQL: COPY FORCE NOT NULL names a copied column - #47

Merged
kvlonge merged 1 commit into
mainfrom
postgres-copy-force-not-null
Dec 6, 2026
Merged

kvlonge merged 1 commit into
mainfrom
postgres-copy-force-not-null

Conversation

@kvlonge

@kvlonge kvlonge commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Why

The legacy COPY form's FORCE NOT NULL list wrote its second item past the copied list's columns (COPY t1 ( c1 , c2 ) … FORCE NOT NULL c1 , c3), naming a column COPY does not copy. The builder now fills that item with the copied list's second column.

Changes

  • syntax/postgres/cases/dml.jsonl: the pg.dml.copy.pre-9-0-from cases follow the new obligation ids (o083–o096 replace o071–o080 and o082). The accept case now ends FORCE NOT NULL c1 , c2, and 3 cases are new.
  • syntax/postgres/receipts/dml.jsonl: 3 receipts appended, recorded on the pinned postgres:18.6 image (sha256:bd5dfa49…) with the raw parser. Existing lines are unchanged. The c1 , c2 case already had a receipt.

Verification

  • A repeat run on a fresh container matched on phase, SQLSTATE and message (only the per-run capture hash differs).
  • New verdicts: the reject case is refused while parsing (42601); the two accept cases pass the parser and stop on the missing table (42P01).
  • The builder's --check against this tree reports 0 stale.

Builder: 2f5e847a456ec414af18b5c19b1d647edaaca61c

@kvlonge
kvlonge merged commit 6d4a57e into main Dec 6, 2026
2 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.

1 participant