Skip to content

Commit

Permalink
Fixed CORE-6340 - Alternate quoting does not work on some particular …
Browse files Browse the repository at this point in the history
…cases.
  • Loading branch information
asfernandes committed Jun 23, 2020
1 parent 3107b33 commit c117620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dsql/Parser.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit c117620

Please sign in to comment.