use of org.h2.command.Prepared in project ignite by apache.
the class GridQueryParsingTest method assertDropTableEquals.
/**
* Parse SQL and compare it to expected instance of DROP TABLE.
*/
private void assertDropTableEquals(GridSqlDropTable exp, String sql) throws Exception {
Prepared prepared = parse(sql);
GridSqlStatement stmt = new GridSqlQueryParser(false).parse(prepared);
assertTrue(stmt instanceof GridSqlDropTable);
assertDropTableEquals(exp, (GridSqlDropTable) stmt);
}
use of org.h2.command.Prepared in project ignite by apache.
the class GridQueryParsingTest method assertDropIndexEquals.
/**
* Parse SQL and compare it to expected instance of DROP INDEX.
*/
private void assertDropIndexEquals(GridSqlDropIndex exp, String sql) throws Exception {
Prepared prepared = parse(sql);
GridSqlStatement stmt = new GridSqlQueryParser(false).parse(prepared);
assertTrue(stmt instanceof GridSqlDropIndex);
assertDropIndexEquals(exp, (GridSqlDropIndex) stmt);
}
use of org.h2.command.Prepared in project ignite by apache.
the class GridQueryParsingTest method assertCreateTableEquals.
/**
* Parse SQL and compare it to expected instance of DROP TABLE.
*/
private void assertCreateTableEquals(GridSqlCreateTable exp, String sql) throws Exception {
Prepared prepared = parse(sql);
GridSqlStatement stmt = new GridSqlQueryParser(false).parse(prepared);
assertTrue(stmt instanceof GridSqlCreateTable);
assertCreateTableEquals(exp, (GridSqlCreateTable) stmt);
}
use of org.h2.command.Prepared in project ignite by apache.
the class GridQueryParsingTest method assertCreateIndexEquals.
/**
* Parse SQL and compare it to expected instance.
*/
private void assertCreateIndexEquals(GridSqlCreateIndex exp, String sql) throws Exception {
Prepared prepared = parse(sql);
GridSqlStatement stmt = new GridSqlQueryParser(false).parse(prepared);
assertTrue(stmt instanceof GridSqlCreateIndex);
assertCreateIndexEquals(exp, (GridSqlCreateIndex) stmt);
}
Aggregations