mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.2 into 10.3
This commit is contained in:
@ -1835,10 +1835,7 @@ int write_record(THD *thd, TABLE *table,COPY_INFO *info)
|
||||
be updated as if this is an UPDATE.
|
||||
*/
|
||||
if (different_records && table->default_field)
|
||||
{
|
||||
if (table->update_default_fields(1, info->ignore))
|
||||
goto err;
|
||||
}
|
||||
table->evaluate_update_default_function();
|
||||
|
||||
/* CHECK OPTION for VIEW ... ON DUPLICATE KEY UPDATE ... */
|
||||
res= info->table_list->view_check_option(table->in_use, info->ignore);
|
||||
@ -3856,7 +3853,7 @@ int select_insert::send_data(List<Item> &values)
|
||||
thd->count_cuted_fields= CHECK_FIELD_WARN; // Calculate cuted fields
|
||||
store_values(values);
|
||||
if (table->default_field &&
|
||||
unlikely(table->update_default_fields(0, info.ignore)))
|
||||
unlikely(table->update_default_fields(info.ignore)))
|
||||
DBUG_RETURN(1);
|
||||
thd->count_cuted_fields= CHECK_FIELD_ERROR_FOR_NULL;
|
||||
if (unlikely(thd->is_error()))
|
||||
|
Reference in New Issue
Block a user