summaryrefslogtreecommitdiff
path: root/sql/sql_load.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2022-10-10 10:30:51 +0200
committerSergei Golubchik <serg@mariadb.org>2022-10-26 15:30:38 +0200
commitd94ed0bb2a3305d8c1588360c0ac6a384e580981 (patch)
tree8e02cee392ba9bcc139017221cdf3585fae5a3ce /sql/sql_load.cc
parent8d2ec37a40117996897c97904ac91b674a448cb8 (diff)
downloadmariadb-git-d94ed0bb2a3305d8c1588360c0ac6a384e580981.tar.gz
MDEV-29721 Inconsistency upon inserting history with visible period columns
don't set vers_write=false if one vers column was used explicitly, instead do vers_update_fields() for columns that do not have explicit value. So, if row_start has the value and row_end not, row_end will get max by default.
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r--sql/sql_load.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc
index fe574db528f..489835c0a5f 100644
--- a/sql/sql_load.cc
+++ b/sql/sql_load.cc
@@ -1106,6 +1106,7 @@ read_sep_field(THD *thd, COPY_INFO &info, TABLE_LIST *table_list,
}
}
restore_record(table, s->default_values);
+ table->reset_default_fields();
while ((item= it++))
{