1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Clear error before reading ok packet

This commit is contained in:
Georg Richter
2022-08-03 17:57:15 +02:00
parent 9fe6541507
commit a6665e65c0

View File

@@ -2552,6 +2552,9 @@ int ma_read_ok_packet(MYSQL *mysql, uchar *pos, ulong length)
mysql->insert_id= net_field_length_ll(&pos);
mysql->server_status=uint2korr(pos);
/* clear error */
mysql->net.last_error[0]= mysql->net.last_errno= mysql->net.extension->extended_errno= 0;
/* callback */
if (mysql->options.extension->status_callback &&
mysql->server_status != last_server_status)