mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fixed bug 663 and WL 1052 (sql_mode is safe for mysqldump)
This commit is contained in:
@ -2245,7 +2245,11 @@ fill_record(List<Item> &fields,List<Item> &values, bool ignore_errors)
|
||||
while ((field=(Item_field*) f++))
|
||||
{
|
||||
value=v++;
|
||||
if (value->save_in_field(field->field, 0) > 0 && !ignore_errors)
|
||||
Field *rfield= field->field;
|
||||
TABLE *table= rfield->table;
|
||||
if (rfield==table->next_number_field)
|
||||
table->auto_increment_field_is_null= false;
|
||||
if (value->save_in_field(rfield, 0) > 0 && !ignore_errors)
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
DBUG_RETURN(0);
|
||||
@ -2263,6 +2267,9 @@ fill_record(Field **ptr,List<Item> &values, bool ignore_errors)
|
||||
while ((field = *ptr++))
|
||||
{
|
||||
value=v++;
|
||||
TABLE *table= field->table;
|
||||
if (field==table->next_number_field)
|
||||
table->auto_increment_field_is_null= false;
|
||||
if (value->save_in_field(field, 0) == 1 && !ignore_errors)
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user