summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorDmitry Shulga <Dmitry.Shulga@Sun.COM>2010-09-09 19:36:57 +0700
committerDmitry Shulga <Dmitry.Shulga@Sun.COM>2010-09-09 19:36:57 +0700
commitd88a11a76687b8c7ae4cb0642a0977b7ca420ad0 (patch)
tree7608a753e026fd1426968680035776f224e48030 /libmysql
parent06b70326ce0ee59c8d143a9b584d51fff0355050 (diff)
downloadmariadb-git-d88a11a76687b8c7ae4cb0642a0977b7ca420ad0.tar.gz
Fix mysql_client_test failure introduced by a patch for Bug#47485.
The problem was that mysql_stmt_next_result() (new to 5.5) was not properly updated.
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/libmysql.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 231b6e2ef76..a44395578c6 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -4874,6 +4874,9 @@ int STDCALL mysql_stmt_next_result(MYSQL_STMT *stmt)
DBUG_RETURN(rc);
}
+ if (mysql->status == MYSQL_STATUS_GET_RESULT)
+ mysql->status= MYSQL_STATUS_STATEMENT_GET_RESULT;
+
stmt->state= MYSQL_STMT_EXECUTE_DONE;
stmt->bind_result_done= FALSE;