diff options
author | monty@mashka.mysql.fi <> | 2003-01-25 15:31:07 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2003-01-25 15:31:07 +0200 |
commit | 1bdd1d0626fdb8f858a3c4bf82e0064ee19b042d (patch) | |
tree | 45f7768e20be3d146b414bb9b770a956b9601f78 /libmysql | |
parent | fa7a94ed14f0bdd39b99abfca872444fdb5fff11 (diff) | |
parent | 5758da1476da75e481f944de4ec91e5464ce7b00 (diff) | |
download | mariadb-git-1bdd1d0626fdb8f858a3c4bf82e0064ee19b042d.tar.gz |
Merge with 3.23.55
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index 152177c0fbe..130e6b1556a 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -485,6 +485,12 @@ simple_command(MYSQL *mysql,enum enum_server_command command, const char *arg, length ? length : (ulong) strlen(arg))) { DBUG_PRINT("error",("Can't send command to server. Error: %d",socket_errno)); + if (net->last_errno == ER_NET_PACKET_TOO_LARGE) + { + net->last_errno=CR_NET_PACKET_TOO_LARGE; + strmov(net->last_error,ER(net->last_errno)); + goto end; + } end_server(mysql); if (mysql_reconnect(mysql)) goto end; |