mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
undo one row warning instead use sql_warnings=1
sql/sql_insert.cc: Undo warnings for single row inserts mysql-test/t/warnings.test: undo one row warning instead use sql_warnings=1 mysql-test/r/warnings.result: Fix result file
This commit is contained in:
@@ -231,9 +231,7 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list,
|
||||
info.update_fields=&update_fields;
|
||||
info.update_values=&update_values;
|
||||
// Don't count warnings for simple inserts
|
||||
if ((thd->client_capabilities & CLIENT_PROTOCOL_41) ||
|
||||
values_list.elements > 1 ||
|
||||
(thd->options & OPTION_WARNINGS))
|
||||
if (values_list.elements > 1 || (thd->options & OPTION_WARNINGS))
|
||||
thd->count_cuted_fields = 1;
|
||||
thd->cuted_fields = 0L;
|
||||
table->next_number_field=table->found_next_number_field;
|
||||
|
||||
Reference in New Issue
Block a user