Skip to content

Commit

Permalink
修复数据源语句解析类型判断
Browse files Browse the repository at this point in the history
  • Loading branch information
aiwenmo committed Feb 14, 2022
1 parent 58b133c commit 21c774e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public JdbcSelectResult query(String sql, Integer limit) {

@Override
public JdbcSelectResult executeSql(String sql, Integer limit) {
List<SQLStatement> stmtList = SQLUtils.parseStatements(sql,config.getType());
List<SQLStatement> stmtList = SQLUtils.parseStatements(sql,config.getType().toLowerCase());
List<Object> resList = new ArrayList<>();
JdbcSelectResult result = JdbcSelectResult.buildResult();
for(SQLStatement item : stmtList){
Expand Down Expand Up @@ -367,7 +367,7 @@ public List<SqlExplainResult> explain(String sql){
List<SqlExplainResult> sqlExplainResults = new ArrayList<>();
String current = null;
try {
List<SQLStatement> stmtList = SQLUtils.parseStatements(sql,config.getType());
List<SQLStatement> stmtList = SQLUtils.parseStatements(sql,config.getType().toLowerCase());
for(SQLStatement item : stmtList){
current = item.toString();
String type = item.getClass().getSimpleName();
Expand Down

0 comments on commit 21c774e

Please sign in to comment.