Revert "Remove trailing spaces and semicolon from SET statements #4341"

This reverts commit 5ccd4154f6.
pull/4340/head
René Cannaò 3 years ago
parent 5ccd4154f6
commit 707ec90f7b

@ -79,8 +79,6 @@ std::map<std::string,std::vector<std::string>> SetParser::parse1() {
re2::RE2 re0("^\\s*SET\\s+", *opt2);
re2::RE2::Replace(&query, re0, "");
re2::RE2 re1("(\\s|;)+$", *opt2); // remove trailing spaces and semicolon
re2::RE2::Replace(&query, re1, "");
std::map<std::string,std::vector<std::string>> result;
@ -361,9 +359,6 @@ std::map<std::string,std::vector<std::string>> SetParser::parse1v2() {
re2::RE2 re0("^\\s*SET\\s+", *parse1v2_opt2);
re2::RE2::Replace(&query, re0, "");
re2::RE2 re1("(\\s|;)+$", *parse1v2_opt2); // remove trailing spaces and semicolon
re2::RE2::Replace(&query, re1, "");
VALGRIND_ENABLE_ERROR_REPORTING;
std::string var;
std::string value1, value2, value3, value4, value5;

Loading…
Cancel
Save