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;
@@ -633,5 +633,6 @@ public final class FnvHash {
long TBLPROPERTIES = fnv1a_64_lower("TBLPROPERTIES");
long FULLTEXT = fnv1a_64_lower("FULLTEXT");
long NO = fnv1a_64_lower("NO");
}
}