void Deveel.Data.Sql.Expressions.SqlBetweenEspressionTests.BetweenDates |
( |
| ) |
|
|
inline |
Definition at line 48 of file SqlBetweenEspressionTests.cs.
49 const string sql =
"TODATE('2001-02-12') BETWEEN TODATE('2000-01-20') AND TODATE('2003-01-01')";
51 SqlExpression expression = null;
52 Assert.DoesNotThrow(() => expression = SqlExpression.Parse(sql));
53 Assert.IsNotNull(expression);
55 Assert.IsInstanceOf<SqlBinaryExpression>(expression);
58 SqlExpression resultExpression = null;
59 Assert.DoesNotThrow(() => resultExpression = expression.Evaluate());
60 Assert.IsNotNull(resultExpression);
63 var value = ((SqlConstantExpression)resultExpression).Value;
SqlExpressionType
All the possible type of SqlExpression supported
void Deveel.Data.Sql.Expressions.SqlBetweenEspressionTests.BetweenNumerics |
( |
| ) |
|
|
inline |
Definition at line 26 of file SqlBetweenEspressionTests.cs.
27 const string sql =
"22 BETWEEN 10 AND 54";
29 SqlExpression expression = null;
30 Assert.DoesNotThrow(() => expression = SqlExpression.Parse(sql));
31 Assert.IsNotNull(expression);
33 Assert.IsInstanceOf<SqlBinaryExpression>(expression);
36 SqlExpression resultExpression = null;
37 Assert.DoesNotThrow(() => resultExpression = expression.Evaluate());
38 Assert.IsNotNull(resultExpression);
41 var value = ((SqlConstantExpression) resultExpression).Value;
SqlExpressionType
All the possible type of SqlExpression supported
The documentation for this class was generated from the following file: