diff --git a/databend-jdbc/src/main/java/com/databend/jdbc/DatabendPreparedStatement.java b/databend-jdbc/src/main/java/com/databend/jdbc/DatabendPreparedStatement.java index 610e8d4..573e4fc 100644 --- a/databend-jdbc/src/main/java/com/databend/jdbc/DatabendPreparedStatement.java +++ b/databend-jdbc/src/main/java/com/databend/jdbc/DatabendPreparedStatement.java @@ -416,7 +416,7 @@ protected boolean execute(List statements) throws SQLExcep try { for (int i = 0; i < statements.size(); i++) { String sql = statements.get(i).getSql(); - if (sql.toLowerCase().contains("insert") && !sql.toLowerCase().contains("select")) { + if (sql.toLowerCase().contains("insert into") && !sql.toLowerCase().contains("select")) { handleBatchInsert(); } else { execute(sql);