summaryrefslogtreecommitdiff
path: root/libmysqld/lib_sql.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2013-07-30 23:42:16 +0400
committerSergey Vojtovich <svoj@mariadb.org>2013-07-30 23:42:16 +0400
commitb183cda347ce014be120e93201b2bc5d31bb7630 (patch)
tree97c7222248080221dca4b3c2544d47e3a246f7d4 /libmysqld/lib_sql.cc
parentbdb7af8dd956b148e6c9c62428b2814130eefdfa (diff)
downloadmariadb-git-b183cda347ce014be120e93201b2bc5d31bb7630.tar.gz
MDEV-4786 - merge 10.0-monty - 10.0
Fixed sys_vars.log_error_func, sys_vars.log_error_func2, maria.small_blocksize, sys_vars.autocommit_func3, sys_vars.autocommit_func2, sys_vars.autocommit_func4, sys_vars.autocommit_func5, sys_vars.tx_isolation_func, main.pool_of_threads, innodb.innodb, archive.archive-big, parts.part_supported_sql_func_innodb, parts.partition_decimal_myisam, parts.partition_decimal_innodb, main.sum_distinct-big, percona.innodb_sys_index, percona.percona_flush_contiguous_neighbors failures. libmysqld/lib_sql.cc: Restore proper method to retrieve warnings number.
Diffstat (limited to 'libmysqld/lib_sql.cc')
-rw-r--r--libmysqld/lib_sql.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 3502ebb1ad3..d6dcf8f8d49 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -241,7 +241,7 @@ static my_bool emb_read_prepare_result(MYSQL *mysql, MYSQL_STMT *stmt)
stmt->stmt_id= thd->client_stmt_id;
stmt->param_count= thd->client_param_count;
stmt->field_count= 0;
- mysql->warning_count= thd->get_stmt_da()->statement_warn_count();
+ mysql->warning_count= thd->get_stmt_da()->current_statement_warn_count();
if (thd->first_data)
{
@@ -1045,7 +1045,7 @@ bool Protocol::send_result_set_metadata(List<Item> *list, uint flags)
if (flags & SEND_EOF)
write_eof_packet(thd, thd->server_status,
- thd->get_stmt_da()->statement_warn_count());
+ thd->get_stmt_da()->current_statement_warn_count());
DBUG_RETURN(prepare_for_send(list->elements));
err: