summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2005-02-10 18:31:02 +0300
committerunknown <konstantin@mysql.com>2005-02-10 18:31:02 +0300
commit6cdda5b38b732d29aad9b6be487a74b3a0385bfa (patch)
tree89a3d10387b197f24d4d0c20ff8aef498baf500b /libmysql
parent98bc23483098fb01df035f7947eb1a6509d0f82a (diff)
parentd9039e8718d9268297568bb996f1b0672db94ae4 (diff)
downloadmariadb-git-6cdda5b38b732d29aad9b6be487a74b3a0385bfa.tar.gz
Merge mysql.com:/home/kostja/work/mysql-4.1-root
into mysql.com:/home/kostja/work/mysql-5.0-root libmysql/libmysql.c: Auto merged tests/mysql_client_test.c: Auto merged
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/libmysql.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index d0dee7976db..6baec95e633 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -4875,17 +4875,17 @@ my_bool STDCALL mysql_stmt_close(MYSQL_STMT *stmt)
if (mysql)
{
mysql->stmts= list_delete(mysql->stmts, &stmt->list);
+ /*
+ Clear NET error state: if the following commands come through
+ successfully, connection will still be usable for other commands.
+ */
+ net_clear_error(&mysql->net);
if ((int) stmt->state > (int) MYSQL_STMT_INIT_DONE)
{
char buff[MYSQL_STMT_HEADER]; /* 4 bytes - stmt id */
if (mysql->unbuffered_fetch_owner == &stmt->unbuffered_fetch_cancelled)
mysql->unbuffered_fetch_owner= 0;
- /*
- Clear NET error state: if the following commands come through
- successfully, connection will still be usable for other commands.
- */
- net_clear_error(&mysql->net);
if (mysql->status != MYSQL_STATUS_READY)
{
/*