Fix multiple OK in multistatement

pull/2156/head
René Cannaò 7 years ago
parent 945ddc7a1f
commit 274ca31cbe

@ -5450,7 +5450,7 @@ void MySQL_Session::MySQL_Result_to_MySQL_wire(MYSQL *mysql, MySQL_ResultSet *My
setStatus |= ( mysql->server_status & ~SERVER_STATUS_AUTOCOMMIT ); // get flags from server_status but ignore autocommit
setStatus = setStatus & ~SERVER_STATUS_CURSOR_EXISTS; // Do not send cursor #1128
client_myds->myprot.generate_pkt_OK(true,NULL,NULL,client_myds->pkt_sid+1,num_rows,mysql->insert_id, setStatus, mysql->warning_count,mysql->info);
client_myds->pkt_sid++;
//client_myds->pkt_sid++;
} else {
// error
char sqlstate[10];
@ -5464,7 +5464,7 @@ void MySQL_Session::MySQL_Result_to_MySQL_wire(MYSQL *mysql, MySQL_ResultSet *My
} else {
client_myds->myprot.generate_pkt_ERR(true,NULL,NULL,client_myds->pkt_sid+1,mysql_errno(mysql),sqlstate,mysql_error(mysql));
}
client_myds->pkt_sid++;
//client_myds->pkt_sid++;
}
}
}

Loading…
Cancel
Save