95 var list = planObj.QueryPlan.DiscoverQueryReferences(1);
99 foreach (var variable
in list) {
108 var t = planObj.QueryPlan.Evaluate(context.
Request);
110 var revPlainOp = plainType.Reverse();
111 return DataObject.Boolean(t.AllRowsMatchColumnValue(0, revPlainOp, ob1));
117 DataObject retVal = DataObject.BooleanTrue;
118 foreach (var exp in expList) {
119 var expItem = exp.Evaluate(context);
122 throw new InvalidOperationException();
128 if (evalItem.Value.IsNull) {
129 retVal = DataObject.BooleanNull;
130 }
else if (!
IsTrue(
Evaluate(ob1, plainType, evalItem.Value, context))) {
132 return DataObject.BooleanFalse;
141 throw new InvalidOperationException(
"Unknown RHS of ALL.");
SqlExpressionType
All the possible type of SqlExpression supported
IRequest Request
Gets the query in which an expression is evaluated.
static bool IsTrue(DataObject b)
An expression that holds a constant value.
An object that provides methods for accessing a finite collection of SQL expressions.
static DataObject Evaluate(DataObject left, SqlExpressionType binaryType, DataObject right, EvaluateContext context)
IVariableResolver VariableResolver
Gets an object used to resolve variables from within the expression.