bug fixed for mysql create table parser. for issue #2082

This commit is contained in:
wenshao
2018-02-01 15:32:42 +08:00
parent d3266ca300
commit 729e203df9
3 changed files with 58 additions and 1 deletions
@@ -2675,7 +2675,7 @@ public class SQLExprParser extends SQLParser {
lexer.nextToken();
accept(Token.NULL);
option = SQLForeignKeyImpl.Option.SET_NULL;
} else if (lexer.token() == Token.ON || lexer.identifierEquals(FnvHash.Constants.ON)) {
} else if (lexer.identifierEquals(FnvHash.Constants.NO)) {
lexer.nextToken();
if (lexer.identifierEquals(FnvHash.Constants.ACTION)) {
option = SQLForeignKeyImpl.Option.NO_ACTION;