mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
6770a9a836
fulltext search was initialized for all MATCH ... AGAINST items at the end of the JOIN::optimize(). But since 5.3 derived tables are initialized lazily on first use, very late in the sub_select(). Skip Item_func_match::init_search initialization if the corresponding table isn't open yet; repeat fulltext initialization for all not-yet-initialized MATCH ... AGAINST items after creating derived tables.
14 lines
296 B
Text
14 lines
296 B
Text
#
|
|
# MATCH on the derived tables
|
|
#
|
|
|
|
#
|
|
# MDEV-4316 MariaDB server crash with signal 11
|
|
#
|
|
|
|
create table t1 (ft text) engine=myisam;
|
|
insert into t1 values ('test1'),('test2');
|
|
select distinct match(ft) against("test1" in boolean mode) from
|
|
(select distinct ft from t1) as t;
|
|
drop table t1;
|
|
|