|
|
|
|
@ -5229,7 +5229,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];
|
|
|
|
|
@ -5243,7 +5243,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++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|