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

Fixed CORE-6340 - Alternate quoting does not work on some particular cases.

This commit is contained in:
Adriano dos Santos Fernandes 2020-06-23 12:58:50 -03:00
parent 3107b33d7d
commit c1176206a8

View File

@ -773,9 +773,9 @@ int Parser::yylexAux()
while (++lex.ptr + 1 < lex.end)
{
if (*lex.ptr == endChar && *++lex.ptr == '\'')
if (*lex.ptr == endChar && lex.ptr[1] == '\'')
{
size_t len = lex.ptr - lex.last_token - 4;
size_t len = ++lex.ptr - lex.last_token - 4;
if (len > MAX_STR_SIZE)
{