20 using NUnit.Framework;
22 namespace Deveel.Data.Sql.Expressions {
27 const string sql =
"22 BETWEEN 10 AND 54";
31 Assert.IsNotNull(expression);
37 Assert.DoesNotThrow(() => resultExpression = expression.
Evaluate());
38 Assert.IsNotNull(resultExpression);
49 const string sql =
"TODATE('2001-02-12') BETWEEN TODATE('2000-01-20') AND TODATE('2003-01-01')";
53 Assert.IsNotNull(expression);
59 Assert.DoesNotThrow(() => resultExpression = expression.
Evaluate());
60 Assert.IsNotNull(resultExpression);
static SqlExpression Parse(string s)
Parses the given SQL string to an expression that can be evaluated.
SqlExpressionType
All the possible type of SqlExpression supported
virtual SqlExpression Evaluate(EvaluateContext context)
When overridden by a derived class, this method evaluates the expression within the provided context...
An expression that holds a constant value.
Defines the base class for instances that represent SQL expression tree nodes.
abstract SqlExpressionType ExpressionType
Gets the type code of this SQL expression.