21 using NUnit.Framework;
23 namespace Deveel.Data.Sql {
26 protected override void OnSetUp(
string testName) {
27 if (testName !=
"DeclareVariable")
30 base.OnSetUp(testName);
40 var variable =
Query.FindVariable(
"a");
42 Assert.IsNotNull(variable);
43 Assert.IsInstanceOf<
StringType>(variable.Type);
50 var variable =
Query.FindVariable(
"a");
51 Assert.IsNotNull(variable);
52 Assert.IsInstanceOf<
StringType>(variable.Type);
53 Assert.IsNotNull(variable.Value);
54 Assert.IsInstanceOf<
StringType>(variable.Value.Type);
61 var variable =
Query.FindVariable(
"b");
62 Assert.IsNotNull(variable);
64 Assert.IsNotNull(variable.Value);
65 Assert.IsInstanceOf<
NumericType>(variable.Value.Type);
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
override void OnSetUp(string testName)
void SetExistingVariable()
void SetNotExistingVariable()
static StringType String()
Defines the base class for instances that represent SQL expression tree nodes.
static SqlConstantExpression Constant(object value)