You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Workaround for MDEV-35935
If the server returns an error packet without error number (and message) we set errno=CR_ERR_MISSING_ERROR_INFO (5026)
This commit is contained in:
@@ -274,6 +274,11 @@ restart:
|
||||
ma_strmake(net->last_error,(char*) pos,
|
||||
min(len,sizeof(net->last_error)-1));
|
||||
}
|
||||
/* MDEV-35935: if server sends error packet without error, we have to
|
||||
set error manually */
|
||||
if (!net->last_errno) {
|
||||
my_set_error(mysql, CR_ERR_MISSING_ERROR_INFO, SQLSTATE_UNKNOWN, 0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user