Skip to content

fix: copy multi-byte characters using text format failed#4216

Merged
olavloite merged 2 commits intopostgresql-dialectfrom
copy-multi-byte-characters
Mar 11, 2026
Merged

fix: copy multi-byte characters using text format failed#4216
olavloite merged 2 commits intopostgresql-dialectfrom
copy-multi-byte-characters

Conversation

@olavloite
Copy link
Copy Markdown
Collaborator

Using CSV format with the COPY command in combination with data that contained multi-byte characters would fail, as the length that was included in the data message would use the text length, instead of the underlying bytes length.

This would cause COPY commands using the CSV format to fail if the data for example contained a letter like 'Ä' or any other multi-byte letter.

Using CSV format with the COPY command in combination with data that contained
multi-byte characters would fail, as the length that was included in the data
message would use the text length, instead of the underlying bytes length.

This would cause COPY commands using the CSV format to fail if the data for
example contained a letter like 'Ä' or any other multi-byte letter.
@olavloite olavloite force-pushed the copy-multi-byte-characters branch 3 times, most recently from 4ef68e5 to f98d086 Compare March 11, 2026 17:07
@olavloite olavloite force-pushed the copy-multi-byte-characters branch from f98d086 to 73c02fd Compare March 11, 2026 17:22
@olavloite olavloite merged commit a183089 into postgresql-dialect Mar 11, 2026
46 checks passed
@olavloite olavloite deleted the copy-multi-byte-characters branch March 11, 2026 17:52
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