mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge branch '10.1' into 10.2
Conflicts: VERSION cmake/plugin.cmake config.h.cmake configure.cmake plugin/server_audit/server_audit.c sql/sql_yacc.yy
This commit is contained in:
@ -8962,6 +8962,9 @@ fill_record(THD *thd, TABLE *table, Field **ptr, List<Item> &values,
|
||||
Item *value;
|
||||
Field *field;
|
||||
bool abort_on_warning_saved= thd->abort_on_warning;
|
||||
uint autoinc_index= table->next_number_field
|
||||
? table->next_number_field->field_index
|
||||
: ~0U;
|
||||
DBUG_ENTER("fill_record");
|
||||
|
||||
if (!*ptr)
|
||||
@ -8987,7 +8990,7 @@ fill_record(THD *thd, TABLE *table, Field **ptr, List<Item> &values,
|
||||
DBUG_ASSERT(field->table == table);
|
||||
|
||||
value=v++;
|
||||
if (field == table->next_number_field)
|
||||
if (field->field_index == autoinc_index)
|
||||
table->auto_increment_field_not_null= TRUE;
|
||||
if (field->vcol_info &&
|
||||
value->type() != Item::DEFAULT_VALUE_ITEM &&
|
||||
|
Reference in New Issue
Block a user