diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-03-19 13:45:23 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-03-19 13:45:23 +0200 |
commit | 9471dbafcecef384e60aca12e03aefcfdf6c04f0 (patch) | |
tree | 39ef9186204bb20a2b37ed1506d85213a9b60e4c /storage/innobase/handler/ha_innodb.h | |
parent | 00572a0b0cc81c38f198adcc5582260a98f3eebf (diff) | |
download | mariadb-git-9471dbafcecef384e60aca12e03aefcfdf6c04f0.tar.gz |
MDEV-18960: Assertion !omits_virtual_cols(*form->s) on TRUNCATE
MariaDB before MDEV-5800 in version 10.2.2 did not support
indexed virtual columns. Non-persistent virtual columns were
hidden from storage engines. Only starting with MDEV-5800, InnoDB
would create internal metadata on virtual columns.
On TRUNCATE TABLE, an old .frm file from before MDEV-5800 may be
used as the table schema. When the table is being re-created by
InnoDB, the old schema must be used. That is, we may hide
the existence of virtual columns from InnoDB.
create_table_check_doc_id_col(): Remove the assertion that failed.
This function can actually correctly deal with virtual columns
that could have been created before MariaDB 10.2.2 introduced MDEV-5800.
create_table_info_t::create_table_def(): Do not create metadata for
virtual columns if the table definition was created before MariaDB 10.2.2.
Diffstat (limited to 'storage/innobase/handler/ha_innodb.h')
0 files changed, 0 insertions, 0 deletions