summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-05-13 23:30:34 +0300
committerMonty <monty@mariadb.org>2020-05-13 23:30:34 +0300
commitedbf124515b36dc2a5ba40ca469d0d70507734a3 (patch)
tree582bed45569de64cf79f49af7ebe811a9f263d2f /sql/table.cc
parent6bc4444d7ca81786de98f27669891692c2d2e21c (diff)
downloadmariadb-git-edbf124515b36dc2a5ba40ca469d0d70507734a3.tar.gz
Ensure that auto_increment fields are marked properly on update
MDEV-19622 Assertion failures in ha_partition::set_auto_increment_if_higher upon UPDATE on Aria table
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc
index d6d86d96016..a639b75fe7c 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -6470,6 +6470,12 @@ void TABLE::mark_columns_needed_for_update()
}
need_signal= true;
}
+ else
+ {
+ if (found_next_number_field)
+ mark_auto_increment_column();
+ }
+
if (file->ha_table_flags() & HA_PRIMARY_KEY_REQUIRED_FOR_DELETE)
{
/*