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

MDEV-25295 Aborted FTS_DOC_ID_INDEX considered as existing FTS_DOC_ID_INDEX during DDL

InnoDB should skip the dropped aborted FTS_DOC_ID_INDEX while
checking the existing FTS_DOC_ID_INDEX in the table. InnoDB
should able to create new FTS_DOC_ID_INDEX if the fulltext
index is being added for the first time.
This commit is contained in:
Thirunarayanan Balathandayuthapani
2021-04-06 18:51:41 +05:30
parent 6fe624b5ac
commit c32edd7515
3 changed files with 31 additions and 2 deletions

View File

@@ -691,3 +691,16 @@ FTS_DOC_ID t
2 foo bar
3 foo
DROP TABLE t;
#
# MDEV-25295 Aborted FTS_DOC_ID_INDEX considered as
# existing FTS_DOC_ID_INDEX during DDL
#
SET sql_mode='';
CREATE TABLE t1 (FTS_DOC_ID BIGINT UNSIGNED NOT NULL,title CHAR(1),body TEXT)engine=innodb;
INSERT INTO t1 (FTS_DOC_ID,title,body)VALUES(1,0,0), (1,0,0);
CREATE FULLTEXT INDEX idx1 ON t1 (title,body);
ERROR 23000: Duplicate entry '' for key '*UNKNOWN*'
CREATE FULLTEXT INDEX idx1 ON t1 (title,body);
ERROR 23000: Duplicate entry '' for key '*UNKNOWN*'
DROP TABLE t1;
SET sql_mode = DEFAULT;