20 using NUnit.Framework;
22 namespace Deveel.Data.Sql.Statements {
27 const string sql =
"OPEN c1";
30 Assert.IsNotNull(statements);
32 var statementList = statements.ToList();
33 Assert.IsNotEmpty(statementList);
34 Assert.AreEqual(1, statementList.Count);
38 Assert.AreEqual(
"c1", statement.CursorName);
39 Assert.IsEmpty(statement.Arguments);
44 const string sql =
"OPEN c1(34, 'user')";
47 Assert.IsNotNull(statements);
49 var statementList = statements.ToList();
50 Assert.IsNotEmpty(statementList);
51 Assert.AreEqual(1, statementList.Count);
55 Assert.AreEqual(
"c1", statement.CursorName);
56 Assert.IsNotEmpty(statement.Arguments);
59 Assert.IsNotNull(arg1);
SqlExpression[] Arguments
Represents the foundation class of SQL statements to be executed.
void OpenCursorWithoutArguments()
An expression that holds a constant value.
void OpenCursorWithArguments()
static IEnumerable< SqlStatement > Parse(string sqlSource)
Parses a given string into one of more statements.