8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 17:23:03 +01:00

Postfix for #5588.

x'ab''cd' should not be valid.
This commit is contained in:
Adriano dos Santos Fernandes 2021-05-13 11:44:11 -03:00
parent ca604de42e
commit 64c76f789b

View File

@ -727,7 +727,7 @@ int Parser::yylexAux()
LexerState saveLex = lex;
if (!yylexSkipSpaces() || lex.ptr[-1] != '\'')
if (!yylexSkipSpaces() || lex.ptr - 1 == saveLex.ptr || lex.ptr[-1] != '\'')
{
lex = saveLex;
break;