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

[MySQL] Fix bug when inserted ids are not returned if rewriteBatchedStatements property set to true #1873

Merged
merged 1 commit into from
Oct 1, 2023

Conversation

Tapac
Copy link
Contributor

@Tapac Tapac commented Sep 30, 2023

When rewriteBatchedStatements property is on mysql driver returns -2 as for each row returned by PreparedStatement.batchUpdate function. And when the whole array is summed up (#1641) it results in negative value as nothing where inserted.

@Tapac Tapac requested a review from e5l September 30, 2023 17:59
@e5l
Copy link
Member

e5l commented Oct 1, 2023

Could you check the CI?

@Tapac
Copy link
Contributor Author

Tapac commented Oct 1, 2023

It looks like it some flaky test. re-run helps

Copy link
Member

@e5l e5l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Feel free to merge

@Tapac Tapac merged commit 493c397 into main Oct 1, 2023
@joc-a joc-a deleted the tapac/mysql-batch-insert-rewrite-batches branch October 2, 2023 10:30
saral pushed a commit to saral/Exposed that referenced this pull request Oct 3, 2023
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