summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2003-01-25 15:31:07 +0200
committerunknown <monty@mashka.mysql.fi>2003-01-25 15:31:07 +0200
commit49e0eea578eb119cafb2df1ba77b35fcf8391224 (patch)
tree45f7768e20be3d146b414bb9b770a956b9601f78 /libmysql
parentdb47e4ca2479a8e7bde91757fa968c462ca2a343 (diff)
parent4886e3d2d4e05faba9f13869c5e0e3b4dc6a7c1c (diff)
downloadmariadb-git-49e0eea578eb119cafb2df1ba77b35fcf8391224.tar.gz
Merge with 3.23.55
BitKeeper/deleted/.del-net.c~ef21d6402bb882f9: Auto merged innobase/os/os0file.c: Auto merged libmysql/Makefile.am: Auto merged scripts/make_binary_distribution.sh: Auto merged sql/log.cc: Auto merged sql/mysqld.cc: Auto merged sql/sql_select.cc: Auto merged Build-tools/Do-compile: Use local version Makefile.am: remove double libmysql_r configure.in: Use local libmysql/libmysql.c: Dont abort connection if too big packet error sql/ha_innodb.cc: use local sql/net_serv.cc: use local sql/sql_parse.cc: Merge with 3.23.55 (fix double free of user)
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/libmysql.c6
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;