|
|
|
@ -1,55 +1,6 @@
|
|
|
|
|
package org.jeecg.common.util.sqlInjection.parse;
|
|
|
|
|
|
|
|
|
|
import net.sf.jsqlparser.expression.AllValue;
|
|
|
|
|
import net.sf.jsqlparser.expression.AnalyticExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.AnyComparisonExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.ArrayConstructor;
|
|
|
|
|
import net.sf.jsqlparser.expression.ArrayExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.BinaryExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.CaseExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.CastExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.CollateExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.ConnectByRootOperator;
|
|
|
|
|
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.DateValue;
|
|
|
|
|
import net.sf.jsqlparser.expression.DoubleValue;
|
|
|
|
|
import net.sf.jsqlparser.expression.Expression;
|
|
|
|
|
import net.sf.jsqlparser.expression.ExpressionVisitor;
|
|
|
|
|
import net.sf.jsqlparser.expression.ExtractExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.Function;
|
|
|
|
|
import net.sf.jsqlparser.expression.HexValue;
|
|
|
|
|
import net.sf.jsqlparser.expression.IntervalExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.JdbcNamedParameter;
|
|
|
|
|
import net.sf.jsqlparser.expression.JdbcParameter;
|
|
|
|
|
import net.sf.jsqlparser.expression.JsonAggregateFunction;
|
|
|
|
|
import net.sf.jsqlparser.expression.JsonExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.JsonFunction;
|
|
|
|
|
import net.sf.jsqlparser.expression.JsonFunctionExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.KeepExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.LongValue;
|
|
|
|
|
import net.sf.jsqlparser.expression.MySQLGroupConcat;
|
|
|
|
|
import net.sf.jsqlparser.expression.NextValExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.NotExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.NullValue;
|
|
|
|
|
import net.sf.jsqlparser.expression.NumericBind;
|
|
|
|
|
import net.sf.jsqlparser.expression.OracleHierarchicalExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.OracleHint;
|
|
|
|
|
import net.sf.jsqlparser.expression.OracleNamedFunctionParameter;
|
|
|
|
|
import net.sf.jsqlparser.expression.Parenthesis;
|
|
|
|
|
import net.sf.jsqlparser.expression.RowConstructor;
|
|
|
|
|
import net.sf.jsqlparser.expression.RowGetExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.SignedExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.StringValue;
|
|
|
|
|
import net.sf.jsqlparser.expression.TimeKeyExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.TimeValue;
|
|
|
|
|
import net.sf.jsqlparser.expression.TimestampValue;
|
|
|
|
|
import net.sf.jsqlparser.expression.TimezoneExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.TryCastExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.UserVariable;
|
|
|
|
|
import net.sf.jsqlparser.expression.ValueListExpression;
|
|
|
|
|
import net.sf.jsqlparser.expression.VariableAssignment;
|
|
|
|
|
import net.sf.jsqlparser.expression.WhenClause;
|
|
|
|
|
import net.sf.jsqlparser.expression.XMLSerializeExpr;
|
|
|
|
|
import net.sf.jsqlparser.expression.*;
|
|
|
|
|
import net.sf.jsqlparser.expression.operators.arithmetic.Addition;
|
|
|
|
|
import net.sf.jsqlparser.expression.operators.arithmetic.BitwiseAnd;
|
|
|
|
|
import net.sf.jsqlparser.expression.operators.arithmetic.BitwiseLeftShift;
|
|
|
|
@ -215,6 +166,23 @@ public class ConstAnalyzer implements ExpressionVisitor, ItemsListVisitor {
|
|
|
|
|
expr.getBetweenExpressionEnd().accept(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
// * 用于处理 OverlapsCondition 类型的表达式
|
|
|
|
|
// * @param overlapsCondition
|
|
|
|
|
// */
|
|
|
|
|
// @Override
|
|
|
|
|
// public void visit(OverlapsCondition overlapsCondition) {
|
|
|
|
|
// constFlag.set(false);
|
|
|
|
|
// }
|
|
|
|
|
// /**
|
|
|
|
|
// * 用于处理 SafeCastExpression 类型的表达式。
|
|
|
|
|
// * @param safeCastExpression
|
|
|
|
|
// */
|
|
|
|
|
// @Override
|
|
|
|
|
// public void visit(SafeCastExpression safeCastExpression) {
|
|
|
|
|
// constFlag.set(false);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void visit(EqualsTo expr) {
|
|
|
|
|
visitBinaryExpression(expr);
|
|
|
|
|