8 namespace Deveel.Data.Sql.Compile {
13 const string sql =
"CREATE SCHEMA test_schema";
15 var result = Compile(sql);
17 Assert.IsNotNull(result);
18 Assert.IsFalse(result.HasErrors);
20 Assert.IsNotEmpty(result.Statements);
21 Assert.AreEqual(1, result.Statements.Count);
23 var statement = result.Statements.FirstOrDefault();
25 Assert.IsNotNull(statement);
29 Assert.AreEqual(
"test_schema", schemaStatement.SchemaName);
34 const string sql =
"DROP SCHEMA test_schema";
36 var result = Compile(sql);
38 Assert.IsNotNull(result);
39 Assert.IsFalse(result.HasErrors);
41 Assert.IsNotEmpty(result.Statements);
42 Assert.AreEqual(1, result.Statements.Count);
44 var statement = result.Statements.FirstOrDefault();
46 Assert.IsNotNull(statement);
51 Assert.AreEqual(
"test_schema", schemaStatement.SchemaName);