MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Frazer Clement Date:October 5 2009 1:10pm
Subject:bzr push into mysql-5.0-bugteam branch (frazer:2817 to 2818) Bug#39663
View as plain text  
 2818 Frazer Clement	2009-10-05
      Bug#39663 mysqltest: --enable_info, affected_rows and ps-protocol broken
      modified:
        client/mysqltest.c

 2817 Georgi Kodinov	2009-10-04 [merge]
      automerge
      modified:
        configure.in

=== modified file 'client/mysqltest.c'
--- a/client/mysqltest.c	2009-09-09 18:52:17 +0000
+++ b/client/mysqltest.c	2009-10-05 12:57:00 +0000
@@ -6346,6 +6346,16 @@ void run_query_stmt(MYSQL *mysql, struct
       */
     }
 
+    /*
+      Need to grab affected rows information before getting
+      warnings here
+    */
+    ulonglong affected_rows;
+    LINT_INIT(affected_rows);
+
+    if (!disable_info)
+      affected_rows= mysql_affected_rows(mysql);
+
     if (!disable_warnings)
     {
       /* Get the warnings from execute */
@@ -6370,7 +6380,7 @@ void run_query_stmt(MYSQL *mysql, struct
     }
 
     if (!disable_info)
-      append_info(ds, mysql_affected_rows(mysql), mysql_info(mysql));
+      append_info(ds, affected_rows, mysql_info(mysql));
 
   }
 

Thread
bzr push into mysql-5.0-bugteam branch (frazer:2817 to 2818) Bug#39663Frazer Clement5 Oct