Skip to content

Commit

Permalink
Keep multiplexing enabled for some variables
Browse files Browse the repository at this point in the history
These 2 commands do not disable multiplexing:
- SELECT @@tx_isolation
- SELECT @@Version
  • Loading branch information
renecannao committed Feb 12, 2016
1 parent 995fe51 commit 488f44b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/mysql_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,13 @@ void MySQL_Connection::ProcessQueryAndSetStatusFlags(char *query_digest_text) {
if (query_digest_text==NULL) return;
if (get_status_user_variable()==false) { // we search for variables only if not already set
if (index(query_digest_text,'@')) {
set_status_user_variable(true);
if (
strncasecmp(query_digest_text,"SELECT @@tx_isolation", strlen("SELECT @@tx_isolation"))
&&
strncasecmp(query_digest_text,"SELECT @@version", strlen("SELECT @@version"))
) {
set_status_user_variable(true);
}
}
}
if (get_status_temporary_table()==false) { // we search for temporary if not already set
Expand Down

0 comments on commit 488f44b

Please sign in to comment.