Skip to content

Commit

Permalink
fix execute insert select from
Browse files Browse the repository at this point in the history
  • Loading branch information
hantmac committed May 21, 2024
1 parent c411bf7 commit 4b4555a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ protected boolean execute(List<StatementInfoWrapper> 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);
Expand Down

0 comments on commit 4b4555a

Please sign in to comment.