Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/parser/flex_lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3193,7 +3193,7 @@ YY_RULE_SETUP
case 154:
YY_RULE_SETUP
#line 249 "flex_lexer.l"
{ BEGIN singlequotedstring; strbuf = std::stringstream{}; }
{ BEGIN singlequotedstring; strbuf.clear(); strbuf.str(""); } // Clear strbuf manually, see #170
YY_BREAK
case 155:
YY_RULE_SETUP
Expand Down
2 changes: 1 addition & 1 deletion src/parser/flex_lexer.l
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ COMMIT TOKEN(COMMIT)
return SQL_IDENTIFIER;
}

\' { BEGIN singlequotedstring; strbuf = std::stringstream{}; }
\' { BEGIN singlequotedstring; strbuf.clear(); strbuf.str(""); } // Clear strbuf manually, see #170
<singlequotedstring>\'\' { strbuf << '\''; }
<singlequotedstring>[^']* { strbuf << yytext; }
<singlequotedstring>\' { BEGIN 0; yylval->sval = strdup(strbuf.str().c_str()); return SQL_STRING; }
Expand Down