Skip to content

chore: add pg_copy regression tests#3715

Merged
abonander merged 1 commit intolaunchbadge:mainfrom
joeydewaal:copy-errr
Jan 29, 2025
Merged

chore: add pg_copy regression tests#3715
abonander merged 1 commit intolaunchbadge:mainfrom
joeydewaal:copy-errr

Conversation

@joeydewaal
Copy link
Contributor

In #3699 an issue was opened that stated that a PgConnection is left in a broken state if a copy_in_raw returns an error. There is a PR linked (sqlpage@0310a7b) that fixes this error for sqlx_oldapi. I tried reproducing this issue with the regression tests in the PR but could not get an error with SQLx version 0.8.3.

I tested multiple versions and found out that versions 0.6.3 and older have this issue but newer versions are fixed. In this PR I added the regression tests from sqlx_oldapi so issue can't come back.

Fixes #3699

@abonander abonander merged commit d8af1fa into launchbadge:main Jan 29, 2025
81 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.

Postgres copy_in_raw leaves the connection in a corrupted state when the initial copy query returns an error

2 participants