1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-31416 ASAN errors in dict_v_col_t::detach upon adding key to virtual column

- InnoDB throws ASAN error while adding the index on virtual column
of system versioned table. InnoDB wrongly assumes that virtual
column collation type changes, creates new column with different
character set. This leads to failure while detaching the column
from indexes.
This commit is contained in:
Thirunarayanan Balathandayuthapani
2023-06-08 16:32:14 +05:30
parent 80585c9d6f
commit bf0a54df34
3 changed files with 20 additions and 1 deletions

View File

@@ -134,3 +134,12 @@ t CREATE TABLE `t` (
FULLTEXT KEY `a` (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_520_ci
DROP TABLE t;
#
# MDEV-31416 ASAN errors in dict_v_col_t::detach upon
# adding key to virtual column
#
CREATE TABLE t (a INT) ENGINE=InnoDB WITH SYSTEM VERSIONING;
SET SYSTEM_VERSIONING_ALTER_HISTORY= KEEP;
ALTER TABLE t ADD COLUMN v VARCHAR(128) GENERATED ALWAYS AS (CRC32('MariaDB'));
ALTER TABLE t ADD INDEX (v);
DROP TABLE t;