Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The usage of useBulkCopyForBatchInsert=true connection parameter leads to invalid batch inserts. #1993

Closed
balazstbb opened this issue Dec 7, 2022 · 2 comments
Labels
Question Used when a question is asked, as opposed to an issue being raised

Comments

@balazstbb
Copy link
Contributor

balazstbb commented Dec 7, 2022

Driver version

Any

SQL Server version

Any

Client Operating System

Any

JAVA/JVM version

Any

Table schema

CREATE TABLE test (c1 varchar(1), c2 varchar(3))

Problem description

Columns mixing up on batch insert and leads to invalid data

Expected behavior

The same result expected like if no batch of inserts

Actual behavior

Reproducible with the
com.microsoft.sqlserver.jdbc.preparedStatement.BatchExecutionWithBulkCopyTest.testReverseColumnOrder()
unit test from the PR

Error message/stack trace

Reproducible with the
com.microsoft.sqlserver.jdbc.preparedStatement.BatchExecutionWithBulkCopyTest.testReverseColumnOrder()
unit test from the PR

Any other details that can be helpful

Possible fix: PR

JDBC trace logs

Reproducible with the
com.microsoft.sqlserver.jdbc.preparedStatement.BatchExecutionWithBulkCopyTest.testReverseColumnOrder()
unit test from the PR

@tkyc
Copy link
Contributor

tkyc commented Dec 8, 2022

We'll take a look and get back to you, but our response will be a bit delayed as were in the middle of finalizing a couple of hotfix releases.

@lilgreenbird lilgreenbird added the Question Used when a question is asked, as opposed to an issue being raised label Dec 12, 2022
@Jeffery-Wasty
Copy link
Contributor

Resolved by #1992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Used when a question is asked, as opposed to an issue being raised
Projects
None yet
Development

No branches or pull requests

4 participants