mirror of
https://github.com/MariaDB/server.git
synced 2025-10-25 18:38:00 +03:00
Merge mysql.com:/home/svoj/devel/mysql/BUG25729/mysql-5.0-engines
into mysql.com:/home/svoj/devel/mysql/BUG25729/mysql-5.1-engines mysql-test/r/fulltext_left_join.result: Auto merged mysql-test/t/fulltext_left_join.test: Auto merged sql/item_func.cc: Auto merged sql/item_func.h: Auto merged
This commit is contained in:
@@ -90,3 +90,10 @@ id link name relevance
|
||||
1 1 string 0
|
||||
2 0 string 0
|
||||
DROP TABLE t1,t2;
|
||||
CREATE TABLE t1 (a INT);
|
||||
CREATE TABLE t2 (b INT, c TEXT, KEY(b));
|
||||
INSERT INTO t1 VALUES(1);
|
||||
INSERT INTO t2(b,c) VALUES(2,'castle'),(3,'castle');
|
||||
SELECT * FROM t1 LEFT JOIN t2 ON a=b WHERE MATCH(c) AGAINST('+castle' IN BOOLEAN MODE);
|
||||
a b c
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
@@ -87,3 +87,14 @@ SELECT t1.*, MATCH(t1.name) AGAINST('string') AS relevance
|
||||
DROP TABLE t1,t2;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
||||
#
|
||||
# BUG#25729 - boolean full text search is confused by NULLs produced by LEFT
|
||||
# JOIN
|
||||
#
|
||||
CREATE TABLE t1 (a INT);
|
||||
CREATE TABLE t2 (b INT, c TEXT, KEY(b));
|
||||
INSERT INTO t1 VALUES(1);
|
||||
INSERT INTO t2(b,c) VALUES(2,'castle'),(3,'castle');
|
||||
SELECT * FROM t1 LEFT JOIN t2 ON a=b WHERE MATCH(c) AGAINST('+castle' IN BOOLEAN MODE);
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
Reference in New Issue
Block a user