summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorHery Ramilison <hery.ramilison@sun.com>2009-10-15 00:40:40 +0200
committerHery Ramilison <hery.ramilison@sun.com>2009-10-15 00:40:40 +0200
commit7df70d09a90ca9cd9b30c773074cfa7d44e1f9eb (patch)
tree406c29a6acd05bcd918c182caa45d00854b759ba /client
parent3d35e53c85622e0e851bc9fb0d20aa6240dcf67f (diff)
downloadmariadb-git-7df70d09a90ca9cd9b30c773074cfa7d44e1f9eb.tar.gz
Added make targets 'test-bt-fast' and 'test-bt-debug-fast'
Put variable declaration at the beginning of a block
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.c55
1 files changed, 28 insertions, 27 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index fb33d30da81..b4a19444ad2 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -6350,38 +6350,39 @@ 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);
-
- if (!disable_warnings)
{
- /* Get the warnings from execute */
+ ulonglong affected_rows;
+ LINT_INIT(affected_rows);
+
+ if (!disable_info)
+ affected_rows= mysql_affected_rows(mysql);
- /* Append warnings to ds - if there are any */
- if (append_warnings(&ds_execute_warnings, mysql) ||
- ds_execute_warnings.length ||
- ds_prepare_warnings.length ||
- ds_warnings->length)
+ if (!disable_warnings)
{
- dynstr_append_mem(ds, "Warnings:\n", 10);
- if (ds_warnings->length)
- dynstr_append_mem(ds, ds_warnings->str,
- ds_warnings->length);
- if (ds_prepare_warnings.length)
- dynstr_append_mem(ds, ds_prepare_warnings.str,
- ds_prepare_warnings.length);
- if (ds_execute_warnings.length)
- dynstr_append_mem(ds, ds_execute_warnings.str,
- ds_execute_warnings.length);
- }
- }
+ /* Get the warnings from execute */
- if (!disable_info)
- append_info(ds, affected_rows, mysql_info(mysql));
+ /* Append warnings to ds - if there are any */
+ if (append_warnings(&ds_execute_warnings, mysql) ||
+ ds_execute_warnings.length ||
+ ds_prepare_warnings.length ||
+ ds_warnings->length)
+ {
+ dynstr_append_mem(ds, "Warnings:\n", 10);
+ if (ds_warnings->length)
+ dynstr_append_mem(ds, ds_warnings->str,
+ ds_warnings->length);
+ if (ds_prepare_warnings.length)
+ dynstr_append_mem(ds, ds_prepare_warnings.str,
+ ds_prepare_warnings.length);
+ if (ds_execute_warnings.length)
+ dynstr_append_mem(ds, ds_execute_warnings.str,
+ ds_execute_warnings.length);
+ }
+ }
+ if (!disable_info)
+ append_info(ds, affected_rows, mysql_info(mysql));
+ }
}
end: