Commit 72362ac7 authored by Alexander Nozdrin's avatar Alexander Nozdrin

Fix manual-merge.

parent e89a561d
...@@ -6933,38 +6933,31 @@ void run_query_stmt(MYSQL *mysql, struct st_command *command, ...@@ -6933,38 +6933,31 @@ void run_query_stmt(MYSQL *mysql, struct st_command *command,
Fetch info before fetching warnings, since it will be reset Fetch info before fetching warnings, since it will be reset
otherwise. otherwise.
*/ */
{
ulonglong affected_rows;
LINT_INIT(affected_rows);
if (!disable_info) if (!disable_info)
append_info(ds, mysql_stmt_affected_rows(stmt), mysql_info(mysql)); append_info(ds, mysql_stmt_affected_rows(stmt), mysql_info(mysql));
if (!disable_warnings) if (!disable_warnings)
{ {
/* Get the warnings from execute */ /* Get the warnings from execute */
/* Append warnings to ds - if there are any */ /* Append warnings to ds - if there are any */
if (append_warnings(&ds_execute_warnings, mysql) || if (append_warnings(&ds_execute_warnings, mysql) ||
ds_execute_warnings.length || ds_execute_warnings.length ||
ds_prepare_warnings.length || ds_prepare_warnings.length ||
ds_warnings->length) ds_warnings->length)
{ {
dynstr_append_mem(ds, "Warnings:\n", 10); dynstr_append_mem(ds, "Warnings:\n", 10);
if (ds_warnings->length) if (ds_warnings->length)
dynstr_append_mem(ds, ds_warnings->str, dynstr_append_mem(ds, ds_warnings->str,
ds_warnings->length); ds_warnings->length);
if (ds_prepare_warnings.length) if (ds_prepare_warnings.length)
dynstr_append_mem(ds, ds_prepare_warnings.str, dynstr_append_mem(ds, ds_prepare_warnings.str,
ds_prepare_warnings.length); ds_prepare_warnings.length);
if (ds_execute_warnings.length) if (ds_execute_warnings.length)
dynstr_append_mem(ds, ds_execute_warnings.str, dynstr_append_mem(ds, ds_execute_warnings.str,
ds_execute_warnings.length); ds_execute_warnings.length);
}
} }
if (!disable_info)
append_info(ds, affected_rows, mysql_info(mysql));
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment