mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Enable warnings by default for single value list inserts also when the client protocol is >= 4.1
tests/client_test.c: test for timestamp bug (BR #819) sql/sql_insert.cc: Enable warnings by default for single value list protocol mysql-test/t/warnings.test: Updated test for single value list insert warning mysql-test/r/warnings.result: Updated warnings results
This commit is contained in:
@@ -231,7 +231,9 @@ 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 (values_list.elements > 1 || (thd->options & OPTION_WARNINGS))
|
||||
if ((thd->client_capabilities & CLIENT_PROTOCOL_41) ||
|
||||
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