We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 995fe51 commit 488f44bCopy full SHA for 488f44b
lib/mysql_connection.cpp
@@ -1061,7 +1061,13 @@ void MySQL_Connection::ProcessQueryAndSetStatusFlags(char *query_digest_text) {
1061
if (query_digest_text==NULL) return;
1062
if (get_status_user_variable()==false) { // we search for variables only if not already set
1063
if (index(query_digest_text,'@')) {
1064
- set_status_user_variable(true);
+ if (
1065
+ strncasecmp(query_digest_text,"SELECT @@tx_isolation", strlen("SELECT @@tx_isolation"))
1066
+ &&
1067
+ strncasecmp(query_digest_text,"SELECT @@version", strlen("SELECT @@version"))
1068
+ ) {
1069
+ set_status_user_variable(true);
1070
+ }
1071
}
1072
1073
if (get_status_temporary_table()==false) { // we search for temporary if not already set
0 commit comments