Repository navigation
PostgreSQL: COPY FORCE NOT NULL names a copied column - #47
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The legacy COPY form's
FORCE NOT NULLlist 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: thepg.dml.copy.pre-9-0-fromcases follow the new obligation ids (o083–o096 replace o071–o080 and o082). The accept case now endsFORCE NOT NULL c1 , c2, and 3 cases are new.syntax/postgres/receipts/dml.jsonl: 3 receipts appended, recorded on the pinnedpostgres:18.6image (sha256:bd5dfa49…) with the raw parser. Existing lines are unchanged. Thec1 , c2case already had a receipt.Verification
--checkagainst this tree reports 0 stale.Builder: 2f5e847a456ec414af18b5c19b1d647edaaca61c