-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: EXPOSED-57 BatchInsertStatement can't be used with MySQL upsert (#…
…1754) * fix: EXPOSED-57 BatchInsertStatement can't be used with MySQL upsert Enable codeblock that was commented out by issue #129. Add condition that prevents AssertionError if autoGeneratedKeys size mismatch occurs with a dialect that supports a third affected-row value (namely MySQL, MariaDB, and both related H2 modes). Add KDocs explaining that returned value of InsertStatement.insertedCount is calculated as the sum of individual statement values when used in a batch. Include note that some vendors (MySQL-related dialects) return 2 if an existing row is updated, so returned value from an upsert mimics the affected-row value from the database. Refactor test helper, excludingH2Version1, to use a pre-existing H2Dialect function, isSecondVersion. * Fix detekt issues causing max threshold build fail * Revert "Fix detekt issues causing max threshold build fail" This reverts commit 7c2c527. Relevant Detekt issues are addressed in PR#1752
- Loading branch information
Showing
6 changed files
with
84 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters