Skip to content

Commit 69b0dd4

Browse files
authored
Merge pull request #4853 from sysown/v2.7-4839
Ignore tracking of session_track_system_variables
2 parents cc1fd56 + 0b542bd commit 69b0dd4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/MySQL_Variables.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ MySQL_Variables::MySQL_Variables() {
5252
ignore_vars.push_back("read_rnd_buffer_size");
5353
// NOTE: This variable has been temporarily ignored. Check issues #3442 and #3441.
5454
ignore_vars.push_back("session_track_schema");
55+
// NOTE: This variable has been temporarily ignored. Check issues #4839
56+
ignore_vars.push_back("session_track_system_variables");
5557
variables_regexp = "";
5658
for (auto i = 0; i < SQL_NAME_LAST_HIGH_WM; i++) {
5759
// we initialized all the internal_variable_name if set to NULL

lib/set_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void SetParser::generateRE_parse1v2() {
162162
// - variable name , with double @ (session variable) or single @ (user defiend variable)
163163
// - strings that includes words, spaces and commas
164164
// - single quote string
165-
string sw0 = "(?:\\w+|\"[\\w, ]+\"|\'[\\w, ]+\'|@(?:|@)\\w+|\'\')";
165+
string sw0 = "(?:\\w+|\"[\\w, ]+\"|\'[\\w, ]+\'|@(?:|@|@session\\.|@global\\.)\\w+|\'\')";
166166
string mw0 = "(?:" + sw0 + "(?: *, *" + sw0 + ")*)"; // multiple words, separated by comma and random spaces
167167
string fww = "(?:(?:REPLACE|IFNULL|CONCAT)\\( *" + mw0 + "\\))"; // functions REPLACE|IFNULL|CONCAT having argument multiple words
168168
string rfww2 = "(?:(?:REPLACE|IFNULL|CONCAT)\\( *" + fww + " *, *" + mw0 + "\\))"; //functions REPLACE|IFNULL|CONCAT calling the same functions

0 commit comments

Comments
 (0)