mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
undo one row warning instead use sql_warnings=1
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