summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorFrazer Clement <frazer@mysql.com>2009-10-08 16:23:15 +0100
committerFrazer Clement <frazer@mysql.com>2009-10-08 16:23:15 +0100
commitfd04391340e9480857e0a31426cdefea21b5a036 (patch)
treebd33082c89ce02c3a6dee013f65f6e827511f268 /client
parent3185118e1a8d7599b7b5238b4b320f1a97a47bd5 (diff)
downloadmariadb-git-fd04391340e9480857e0a31426cdefea21b5a036.tar.gz
Fix compile break from bug#39663 fix
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index fb33d30da81..442b2020a56 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -6214,8 +6214,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
@@ -6350,9 +6352,6 @@ void run_query_stmt(MYSQL *mysql, struct st_command *command,
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);