Skip to content

Commit 2e453e7

Browse files
author
serg@serg.mysql.com
committed
item_func.h bugfix
fulltext_cache.test drop table added
1 parent c857519 commit 2e453e7

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

mysql-test/t/fulltext_cache.test

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ INSERT INTO t2 VALUES (6,2,'um chocolate Snickers');
2525
INSERT INTO t2 VALUES (7,1,'Bife');
2626
INSERT INTO t2 VALUES (8,1,'Pizza de Salmao');
2727

28-
SELECT item, id, MATCH item AGAINST ('sushi') as x FROM t2 ORDER BY x DESC;
29-
3028
SELECT t1.q, t2.item, t2.id, MATCH t2.item AGAINST ('sushi') as x FROM t1, t2
3129
WHERE (t2.id2 = t1.id) ORDER BY x DESC;
3230

31+
SELECT t1.q, t2.item, t2.id, MATCH t2.item AGAINST ('sushi') as x FROM t2, t1
32+
WHERE (t2.id2 = t1.id) ORDER BY x DESC;
33+
34+
drop table t1, t2;
35+

sql/item_func.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -849,9 +849,11 @@ class Item_func_match :public Item_real_func
849849
if (!master)
850850
{
851851
if (ft_handler)
852+
{
852853
ft_close_search(ft_handler);
853-
if(join_key)
854-
table->file->ft_handler=0;
854+
if(join_key)
855+
table->file->ft_handler=0;
856+
}
855857
}
856858
}
857859
const char *func_name() const { return "match"; }

0 commit comments

Comments
 (0)