Skip to content

Comments

Fix COPY FROM statements when copying all columns#388

Closed
tegioz wants to merge 1 commit intolib:masterfrom
tegioz:copy-from-no-columns
Closed

Fix COPY FROM statements when copying all columns#388
tegioz wants to merge 1 commit intolib:masterfrom
tegioz:copy-from-no-columns

Conversation

@tegioz
Copy link

@tegioz tegioz commented Sep 3, 2015

No description provided.

@freeformz
Copy link

My only though on this is that it would actually be good to test the generated statements against an actual table to ensure that they work across all versions of psql.

Otherwise +1

@arp242 arp242 added bug needs-test Needs a test before it can be merged labels Jan 1, 2026
arp242 added a commit that referenced this pull request Jan 19, 2026
Previously it would generate invalid SQL:

	COPY "tbl" () FROM STDI

With this, it will copy all columns:

	COPY "tbl" FROM STDIN

Fixes #388
arp242 added a commit that referenced this pull request Jan 19, 2026
Previously it would generate invalid SQL:

	COPY "tbl" () FROM STDI

With this, it will copy all columns:

	COPY "tbl" FROM STDIN

Fixes #388
@arp242 arp242 closed this in #1239 Jan 19, 2026
arp242 added a commit to dcormier/pq that referenced this pull request Jan 19, 2026
Previously it would generate invalid SQL:

	COPY "tbl" () FROM STDI

With this, it will copy all columns:

	COPY "tbl" FROM STDIN

Fixes lib#388
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug needs-test Needs a test before it can be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants