item_func.h bugfix
fulltext_cache.test drop table added mysql-test/t/fulltext_cache.test: drop table added sql/item_func.h: bugfix
This commit is contained in:
parent
33dbdbcef8
commit
245d0d182a
@ -25,8 +25,11 @@ INSERT INTO t2 VALUES (6,2,'um chocolate Snickers');
|
|||||||
INSERT INTO t2 VALUES (7,1,'Bife');
|
INSERT INTO t2 VALUES (7,1,'Bife');
|
||||||
INSERT INTO t2 VALUES (8,1,'Pizza de Salmao');
|
INSERT INTO t2 VALUES (8,1,'Pizza de Salmao');
|
||||||
|
|
||||||
SELECT item, id, MATCH item AGAINST ('sushi') as x FROM t2 ORDER BY x DESC;
|
|
||||||
|
|
||||||
SELECT t1.q, t2.item, t2.id, MATCH t2.item AGAINST ('sushi') as x FROM t1, t2
|
SELECT t1.q, t2.item, t2.id, MATCH t2.item AGAINST ('sushi') as x FROM t1, t2
|
||||||
WHERE (t2.id2 = t1.id) ORDER BY x DESC;
|
WHERE (t2.id2 = t1.id) ORDER BY x DESC;
|
||||||
|
|
||||||
|
SELECT t1.q, t2.item, t2.id, MATCH t2.item AGAINST ('sushi') as x FROM t2, t1
|
||||||
|
WHERE (t2.id2 = t1.id) ORDER BY x DESC;
|
||||||
|
|
||||||
|
drop table t1, t2;
|
||||||
|
|
||||||
|
@ -849,11 +849,13 @@ public:
|
|||||||
if (!master)
|
if (!master)
|
||||||
{
|
{
|
||||||
if (ft_handler)
|
if (ft_handler)
|
||||||
|
{
|
||||||
ft_close_search(ft_handler);
|
ft_close_search(ft_handler);
|
||||||
if(join_key)
|
if(join_key)
|
||||||
table->file->ft_handler=0;
|
table->file->ft_handler=0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
const char *func_name() const { return "match"; }
|
const char *func_name() const { return "match"; }
|
||||||
enum Functype functype() const { return FT_FUNC; }
|
enum Functype functype() const { return FT_FUNC; }
|
||||||
void update_used_tables() {}
|
void update_used_tables() {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user