List:Commits« Previous MessageNext Message »
From:Dmitry Shulga Date:September 9 2010 12:37pm
Subject:bzr commit into mysql-5.5-merge branch (Dmitry.Shulga:3197) Bug#47485
View as plain text  
#At file:///Users/shulga/projects/mysql/mysql-5.5-merge/ based on revid:martin.hansson@stripped

 3197 Dmitry Shulga	2010-09-09
      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.
     @ libmysql/libmysql.c
        mysql_stmt_next_result() modified: set mysql->status= MYSQL_STATUS_STATEMENT_GET_RESULT before return
        if there is a result set.

    modified:
      libmysql/libmysql.c
=== modified file 'libmysql/libmysql.c'
--- a/libmysql/libmysql.c	2010-09-07 07:49:47 +0000
+++ b/libmysql/libmysql.c	2010-09-09 12:36:57 +0000
@@ -4874,6 +4874,9 @@ int STDCALL mysql_stmt_next_result(MYSQL
     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;
 


Attachment: [text/bzr-bundle] bzr/dmitry.shulga@sun.com-20100909123657-8fba88cxbgbbb823.bundle
Thread
bzr commit into mysql-5.5-merge branch (Dmitry.Shulga:3197) Bug#47485Dmitry Shulga9 Sep