Skip to content

Commit

Permalink
Incorrect processing of init_connect and PS #906
Browse files Browse the repository at this point in the history
  • Loading branch information
renecannao committed Feb 13, 2017
1 parent 2f65c2e commit 9c2cc16
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/MySQL_Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,17 @@ bool MySQL_Session::handler_again___verify_init_connect() {
if (mysql_thread___init_connect) {
// we send init connect queries only if set
mybe->server_myds->myconn->options.init_connect=strdup(mysql_thread___init_connect);
previous_status.push(PROCESSING_QUERY);
switch(status) { // this switch can be replaced with a simple previous_status.push(status), but it is here for readibility
case PROCESSING_QUERY:
previous_status.push(PROCESSING_QUERY);
break;
case PROCESSING_STMT_PREPARE:
previous_status.push(PROCESSING_STMT_PREPARE);
break;
default:
assert(0);
break;
}
NEXT_IMMEDIATE_NEW(SETTING_INIT_CONNECT);
}
}
Expand Down

0 comments on commit 9c2cc16

Please sign in to comment.