diff options
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r-- | sql/partition_info.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc index 43a00607fe6..78b7e7fca41 100644 --- a/sql/partition_info.cc +++ b/sql/partition_info.cc @@ -483,11 +483,12 @@ bool partition_info::set_used_partition(List<Item> &fields, if (fields.elements || !values.elements) { - if (fill_record(thd, table, fields, values, false)) + if (fill_record(thd, table, fields, values, false, !copy_default_values)) goto err; } else { + /* All fields has a value */ if (fill_record(thd, table, table->field, values, false, false)) goto err; } |