From ee765585a33e1327c4f456276a78f50b0e93f2b5 Mon Sep 17 00:00:00 2001 From: ZhangCheng Date: Thu, 30 Nov 2023 09:29:06 +0800 Subject: [PATCH] Fix assert insert with batch execute test --- .../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(); }