Skip to content

Commit 488f44b

Browse files
committed
Keep multiplexing enabled for some variables
These 2 commands do not disable multiplexing: - SELECT @@tx_isolation - SELECT @@Version
1 parent 995fe51 commit 488f44b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/mysql_connection.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,13 @@ void MySQL_Connection::ProcessQueryAndSetStatusFlags(char *query_digest_text) {
10611061
if (query_digest_text==NULL) return;
10621062
if (get_status_user_variable()==false) { // we search for variables only if not already set
10631063
if (index(query_digest_text,'@')) {
1064-
set_status_user_variable(true);
1064+
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+
}
10651071
}
10661072
}
10671073
if (get_status_temporary_table()==false) { // we search for temporary if not already set

0 commit comments

Comments
 (0)