diff options
author | unknown <serg@serg.mysql.com> | 2001-04-17 14:17:22 +0200 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2001-04-17 14:17:22 +0200 |
commit | 023f4e54f100144489feaa99a1e2ca92c0ddad7d (patch) | |
tree | 884e11a1a12c75cdab0c82cf051989c0ce956675 /mysql-test/t/fulltext.test | |
parent | 4b570fc359635b216abd8852c31ac32cb35bae46 (diff) | |
download | mariadb-git-023f4e54f100144489feaa99a1e2ca92c0ddad7d.tar.gz |
bugfix: HAVING MATCH
Diffstat (limited to 'mysql-test/t/fulltext.test')
-rw-r--r-- | mysql-test/t/fulltext.test | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mysql-test/t/fulltext.test b/mysql-test/t/fulltext.test index 6614a81a94c..064219c6ad3 100644 --- a/mysql-test/t/fulltext.test +++ b/mysql-test/t/fulltext.test @@ -42,7 +42,10 @@ ticket2.id = ttxt.ticket WHERE t1.id = ticket2.ticket and match(ttxt.inhalt) against ('foobar'); INSERT INTO t1 VALUES (3,3); -select t1.id FROM t2 as ttxt,t1 INNER JOIN t1 as ticket2 ON ticket2.id = ttxt.ticket WHERE t1.id = ticket2.ticket and match(ttxt.inhalt) against ('foobar'); +select t1.id FROM t2 as ttxt,t1 +INNER JOIN t1 as ticket2 ON ticket2.id = ttxt.ticket +WHERE t1.id = ticket2.ticket and + match(ttxt.inhalt) against ('foobar'); # Check that we get 'fulltext' index in SHOW CREATE @@ -53,4 +56,9 @@ show create table t2; select * from t2 where MATCH inhalt AGAINST (NULL); +# MATCH in HAVING (pretty useless, but still it should work) + +select * from t2 where MATCH inhalt AGAINST ('foobar'); +select * from t2 having MATCH inhalt AGAINST ('foobar'); + drop table t1,t2; |