Skip to content

Commit

Permalink
Fix assert insert with batch execute test (#29236)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingZC authored Nov 30, 2023
1 parent 75992f9 commit d71de3d
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ void assertInsertWithExecuteWithGeneratedKey() throws SQLException {
@Test
void assertInsertWithBatchExecuteWithGeneratedKeys() throws SQLException {
try (PreparedStatement preparedStatement = getEncryptConnection().prepareStatement(INSERT_GENERATED_KEY_SQL, Statement.RETURN_GENERATED_KEYS)) {
preparedStatement.setObject(1, 'b');
preparedStatement.addBatch();
preparedStatement.setObject(1, 'c');
preparedStatement.addBatch();
preparedStatement.executeBatch();
}
Expand Down

0 comments on commit d71de3d

Please sign in to comment.