From a084f0f2ed1d3ce20f9dfb8e0c1a195d92b9dfdb Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Mon, 24 Feb 2025 14:01:32 +0500 Subject: [PATCH] Fixed SET parser --- lib/PgSQL_Set_Stmt_Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PgSQL_Set_Stmt_Parser.cpp b/lib/PgSQL_Set_Stmt_Parser.cpp index 2823fdd6f..0e8e5247a 100644 --- a/lib/PgSQL_Set_Stmt_Parser.cpp +++ b/lib/PgSQL_Set_Stmt_Parser.cpp @@ -128,7 +128,7 @@ void PgSQL_Set_Stmt_Parser::generateRE_parse1v2() { } } - vp = "\\w+(?:,\\w+)+"; // multiple words separated by commas, WITHOUT any spaces between words + vp = "\\w+(?:\\s*,\\s*\\w+)+"; // multiple words separated by commas, WITHOUT any spaces between words // NOTE: we do not use multiple words without quotes for (auto it = quote_symbol.begin(); it != quote_symbol.end(); it++) { string s = *it + vp + *it;