mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for mysql create table parser. for issue #2082
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user