summaryrefslogtreecommitdiff
path: root/client/mysqltest.cc
diff options
context:
space:
mode:
authorBjorn Munch <Bjorn.Munch@sun.com>2009-10-16 23:25:05 +0200
committerBjorn Munch <Bjorn.Munch@sun.com>2009-10-16 23:25:05 +0200
commit6c9cb9ba2279485c9ec91a16c3b2aa268a4ca048 (patch)
treeddabbd0f194c2927c3b6166798c1328e97cbe07d /client/mysqltest.cc
parent23306c563a52e4bf45569fe0e2b12f681e3ce683 (diff)
parentee56b111a0769b07e2987d138c676beadb3c574e (diff)
downloadmariadb-git-6c9cb9ba2279485c9ec91a16c3b2aa268a4ca048.tar.gz
merge from 5.1 main
Diffstat (limited to 'client/mysqltest.cc')
-rw-r--r--client/mysqltest.cc20
1 files changed, 17 insertions, 3 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index 00131621bf5..8de2f0c79b0 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -1168,6 +1168,7 @@ void free_used_memory()
mysql_server_end();
/* Don't use DBUG after mysql_server_end() */
+ DBUG_VIOLATION_HELPER_LEAVE;
return;
}
@@ -1534,7 +1535,7 @@ void show_diff(DYNAMIC_STRING* ds,
else
diff_name = 0;
#else
- diff_name = "diff"; // Otherwise always assume it's called diff
+ diff_name = "diff"; /* Otherwise always assume it's called diff */
#endif
if (diff_name)
@@ -2490,7 +2491,7 @@ void do_source(struct st_command *command)
}
dynstr_free(&ds_filename);
- return;
+ DBUG_VOID_RETURN;
}
@@ -6774,8 +6775,10 @@ void run_query_stmt(MYSQL *mysql, struct st_command *command,
MYSQL_STMT *stmt;
DYNAMIC_STRING ds_prepare_warnings;
DYNAMIC_STRING ds_execute_warnings;
+ ulonglong affected_rows;
DBUG_ENTER("run_query_stmt");
DBUG_PRINT("query", ("'%-.60s'", query));
+ LINT_INIT(affected_rows);
/*
Init a new stmt if it's not already one created for this connection
@@ -6906,6 +6909,13 @@ void run_query_stmt(MYSQL *mysql, struct st_command *command,
*/
}
+ /*
+ Need to grab affected rows information before getting
+ warnings here
+ */
+ if (!disable_info)
+ affected_rows= mysql_affected_rows(mysql);
+
if (!disable_warnings)
{
/* Get the warnings from execute */
@@ -6930,7 +6940,7 @@ void run_query_stmt(MYSQL *mysql, struct st_command *command,
}
if (!disable_info)
- append_info(ds, mysql_affected_rows(mysql), mysql_info(mysql));
+ append_info(ds, affected_rows, mysql_info(mysql));
}
@@ -7525,6 +7535,8 @@ static void init_signal_handling(void)
#endif
sigaction(SIGILL, &sa, NULL);
sigaction(SIGFPE, &sa, NULL);
+
+ DBUG_VOID_RETURN;
}
#endif /* !__WIN__ */
@@ -8175,6 +8187,8 @@ void do_get_replace_column(struct st_command *command)
}
my_free(start, MYF(0));
command->last_argument= command->end;
+
+ DBUG_VOID_RETURN;
}