Definition at line 11 of file DeclareVariableTests.cs.
void Deveel.Data.Sql.Compile.DeclareVariableTests.DeclareConstantVariable |
( |
| ) |
|
|
inline |
Definition at line 31 of file DeclareVariableTests.cs.
32 const string sql =
"DECLARE a CONSTANT NUMERIC(2, 3)";
35 Assert.IsNotNull(result);
36 Assert.IsFalse(result.HasErrors);
38 Assert.AreEqual(1, result.Statements.Count);
42 Assert.AreEqual(
"a", statement.VariableName);
43 Assert.AreEqual(
true, statement.IsNotNull);
44 Assert.AreEqual(
true, statement.IsConstant);
45 Assert.IsInstanceOf<
NumericType>(statement.VariableType);
SqlCompileResult Compile(string sql)
void Deveel.Data.Sql.Compile.DeclareVariableTests.DeclareSimpleVariable |
( |
| ) |
|
|
inline |
Definition at line 13 of file DeclareVariableTests.cs.
14 const string sql =
"DECLARE a NUMERIC(2, 3)";
17 Assert.IsNotNull(result);
18 Assert.IsFalse(result.HasErrors);
20 Assert.AreEqual(1, result.Statements.Count);
24 Assert.AreEqual(
"a", statement.VariableName);
25 Assert.AreEqual(
false, statement.IsNotNull);
26 Assert.AreEqual(
false, statement.IsConstant);
27 Assert.IsInstanceOf<
NumericType>(statement.VariableType);
SqlCompileResult Compile(string sql)
void Deveel.Data.Sql.Compile.DeclareVariableTests.ImplicitDeclaration |
( |
| ) |
|
|
inline |
Definition at line 49 of file DeclareVariableTests.cs.
50 const string sql =
"a NUMERIC(2, 3)";
53 Assert.IsNotNull(result);
54 Assert.IsFalse(result.HasErrors);
56 Assert.AreEqual(1, result.Statements.Count);
60 Assert.AreEqual(
"a", statement.VariableName);
61 Assert.IsInstanceOf<
NumericType>(statement.VariableType);
SqlCompileResult Compile(string sql)
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb-nunit/Deveel.Data.Sql.Compile/DeclareVariableTests.cs