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:
parent
3107b33d7d
commit
c1176206a8
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user