Skip to content

Commit 4f878a4

Browse files
authored
Merge pull request #4852 from sysown/v3.0-4839
Ignore tracking of session_track_system_variables
2 parents 4d99265 + d963232 commit 4f878a4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/MySQL_Variables.cpp

+2
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

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

0 commit comments

Comments
 (0)