1
0
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:
Georg Richter
2025-02-11 11:28:56 +01:00
parent 28ae227e80
commit 4877093937
4 changed files with 78 additions and 1 deletions

View File

@@ -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
{