mariadb/mysql-test/t/fulltext_order_by.test
unknown 2218bce9cc Cleanup of tests to make them less dependent of eachother
Added new big select test


mysql-test/r/rpl000004.a.result:
  Cleanup
mysql-test/r/show_check.result:
  Cleanup
mysql-test/r/shw000001.result:
  Cleanup
mysql-test/t/fulltext_multi.test:
  Cleanup
mysql-test/t/fulltext_order_by.test:
  Cleanup
mysql-test/t/rpl000001.test:
  Cleanup
mysql-test/t/rpl000002.test:
  Cleanup
mysql-test/t/rpl000003.test:
  Cleanup
mysql-test/t/rpl000004.test:
  Cleanup
mysql-test/t/rpl000005.test:
  Cleanup
mysql-test/t/rpl000006.test:
  Cleanup
mysql-test/t/rpl000007.test:
  Cleanup
mysql-test/t/rpl000008.test:
  Cleanup
mysql-test/t/rpl000009.test:
  Cleanup
mysql-test/t/rpl000010.test:
  Cleanup
mysql-test/t/rpl000011.test:
  Cleanup
mysql-test/t/rpl000012.test:
  Cleanup
mysql-test/t/rpl000013.test:
  Cleanup
mysql-test/t/rpl000014.test:
  Cleanup
mysql-test/t/rpl000015.test:
  Cleanup
mysql-test/t/rpl000016.test:
  Cleanup
mysql-test/t/sel000001.test:
  Cleanup
mysql-test/t/sel000002.test:
  Cleanup
mysql-test/t/sel000003.test:
  Cleanup
mysql-test/t/sel000031.test:
  Cleanup
mysql-test/t/sel000032.test:
  Cleanup
mysql-test/t/sel000033.test:
  Cleanup
mysql-test/t/sel000100.test:
  Cleanup
mysql-test/t/show_check.test:
  Cleanup
mysql-test/t/shw000001.test:
  Cleanup
2001-01-03 02:15:48 +02:00

25 lines
994 B
Text

use test;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (
a INT AUTO_INCREMENT PRIMARY KEY,
message CHAR(20),
FULLTEXT(message)
) comment = 'original testcase by sroussey@network54.com';
INSERT INTO t1 (message) VALUES ("Testing"),("table"),("testbug"),
("steve"),("is"),("cool"),("steve is cool");
# basic MATCH
SELECT a, MATCH (message) AGAINST ('steve') FROM t1 WHERE MATCH (message) AGAINST ('steve');
# MATCH + ORDER BY (with ft-ranges)
SELECT a, MATCH (message) AGAINST ('steve') FROM t1 WHERE MATCH (message) AGAINST ('steve') ORDER BY a;
# MATCH + ORDER BY (with normal ranges) + UNIQUE
SELECT a, MATCH (message) AGAINST ('steve') FROM t1 WHERE a in (2,7,4) and MATCH (message) AGAINST ('steve') ORDER BY a DESC;
# MATCH + ORDER BY + UNIQUE (const_table)
SELECT a, MATCH (message) AGAINST ('steve') FROM t1 WHERE a=7 and MATCH (message) AGAINST ('steve') ORDER BY 1;
# ORDER BY MATCH
SELECT a, MATCH (message) AGAINST ('steve') as rel FROM t1 ORDER BY rel;
drop table t1;