Oracle语法解析问题:版本: 1.1.19
String sql = "drdrdrdr"; List<SQLStatement> stmtList = SQLUtils.parseStatements(sql, JdbcConstants.ORACLE);这里 没有解析出语法问题,MySQL版本能解析出@wenshao
String sql = "drdrdrdr"; List<SQLStatement> stmtList = SQLUtils.parseStatements(sql, JdbcConstants.ORACLE);
2fjabf4q1#
测了一下最新的21 好像没毛病啊
Use oracle Engine,Please double click Folder to view SQL ASTName:SQL Staement 1,Class:class com.alibaba.druid.sql.ast.statement.SQLExprStatement,Content:StringName:afterSemi,Class:class java.lang.Boolean,Content:falseName:attributes,Class:class java.util.HashMap,Content:{}Name:attributesDirect,Class:class java.util.HashMap,Content:{}Name:dbType,Class:class java.lang.String,Content:oracleName:expr,Class:class com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr,Content:StringName:SQL Staement 2,Class:class com.alibaba.druid.sql.ast.statement.SQLExprStatement,Content:sql = "drdrdrdr";Name:afterSemi,Class:class java.lang.Boolean,Content:trueName:attributes,Class:class java.util.HashMap,Content:{}Name:attributesDirect,Class:class java.util.HashMap,Content:{}Name:dbType,Class:class java.lang.String,Content:oracleName:expr,Class:class com.alibaba.druid.sql.ast.expr.SQLBinaryOpExpr,Content:sql = "drdrdrdr"Name:attributes,Class:class java.util.HashMap,Content:{}Name:attributesDirect,Class:class java.util.HashMap,Content:{}Name:bracket,Class:class java.lang.Boolean,Content:falseName:children,Class:class java.util.Arrays$ArrayList,Content:[sql, "drdrdrdr"]Name:dbType,Class:class java.lang.String,Content:oracleName:left,Class:class com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr,Content:sqlName:operator,Class:class com.alibaba.druid.sql.ast.expr.SQLBinaryOperator,Content:EqualityName:right,Class:class com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr,Content:"drdrdrdr"
1条答案
按热度按时间2fjabf4q1#
测了一下最新的21 好像没毛病啊
Use oracle Engine,Please double click Folder to view SQL AST
Name:SQL Staement 1,Class:class com.alibaba.druid.sql.ast.statement.SQLExprStatement,Content:String
Name:afterSemi,Class:class java.lang.Boolean,Content:false
Name:attributes,Class:class java.util.HashMap,Content:{}
Name:attributesDirect,Class:class java.util.HashMap,Content:{}
Name:dbType,Class:class java.lang.String,Content:oracle
Name:expr,Class:class com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr,Content:String
Name:SQL Staement 2,Class:class com.alibaba.druid.sql.ast.statement.SQLExprStatement,Content:sql = "drdrdrdr";
Name:afterSemi,Class:class java.lang.Boolean,Content:true
Name:attributes,Class:class java.util.HashMap,Content:{}
Name:attributesDirect,Class:class java.util.HashMap,Content:{}
Name:dbType,Class:class java.lang.String,Content:oracle
Name:expr,Class:class com.alibaba.druid.sql.ast.expr.SQLBinaryOpExpr,Content:sql = "drdrdrdr"
Name:attributes,Class:class java.util.HashMap,Content:{}
Name:attributesDirect,Class:class java.util.HashMap,Content:{}
Name:bracket,Class:class java.lang.Boolean,Content:false
Name:children,Class:class java.util.Arrays$ArrayList,Content:[sql, "drdrdrdr"]
Name:dbType,Class:class java.lang.String,Content:oracle
Name:left,Class:class com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr,Content:sql
Name:operator,Class:class com.alibaba.druid.sql.ast.expr.SQLBinaryOperator,Content:Equality
Name:right,Class:class com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr,Content:"drdrdrdr"