diff --git a/src/dsql/Parser.cpp b/src/dsql/Parser.cpp index e9e69082656..7e1b954b059 100644 --- a/src/dsql/Parser.cpp +++ b/src/dsql/Parser.cpp @@ -407,6 +407,10 @@ int Parser::yylexAux() } SSHORT c = lex.ptr[-1]; + + if (c == '\0') + yyabandon(yyposn, -104, isc_token_err); + UCHAR tok_class = classes(c); char string[MAX_TOKEN_LEN];