try {
CharStream chars = new ANTLRStringStream(sql);
SqlLexer lexer = new SqlLexer(chars);
CommonTokenStream tokens = new CommonTokenStream(lexer);
SqlParser parser = new SqlParser(tokens);
return parser.schema_create_table_stmt();
} catch (RecognitionException re) {
throw new SqlJetException(SqlJetErrorCode.ERROR, "Invalid sql statement: " + sql);
}
}