bugfix for create table t as select ...

This commit is contained in:
yakolee
2014-06-17 16:53:54 +08:00
parent d5c37f4ada
commit 6ef33367d4
2 changed files with 24 additions and 0 deletions
@@ -550,6 +550,10 @@ public class MySqlCreateTableParser extends SQLCreateTableParser {
if (lexer.token() == (Token.ON)) {
throw new ParserException("TODO");
}
if (lexer.token() == (Token.AS)) {
lexer.nextToken();
}
if (lexer.token() == (Token.SELECT)) {
SQLSelect query = new MySqlSelectParser(this.exprParser).select();