From d71de3d05b2af1ee7f11817da1341881322a68c0 Mon Sep 17 00:00:00 2001 From: ZhangCheng Date: Thu, 30 Nov 2023 09:46:23 +0800 Subject: [PATCH] Fix assert insert with batch execute test (#29236) --- .../test/e2e/driver/statement/EncryptPreparedStatementTest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/e2e/driver/src/test/java/org/apache/shardingsphere/test/e2e/driver/statement/EncryptPreparedStatementTest.java b/test/e2e/driver/src/test/java/org/apache/shardingsphere/test/e2e/driver/statement/EncryptPreparedStatementTest.java index e2b0ef99197e9..8df05e2da3c13 100644 --- a/test/e2e/driver/src/test/java/org/apache/shardingsphere/test/e2e/driver/statement/EncryptPreparedStatementTest.java +++ b/test/e2e/driver/src/test/java/org/apache/shardingsphere/test/e2e/driver/statement/EncryptPreparedStatementTest.java @@ -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(); }