mariadb/mysql-test/r/fulltext_multi.result
unknown 7d94788c1a WL#964
porting mysql_test_run on Linux and Windows


client/mysqltest.c:
  added windows code
mysql-test/Makefile.am:
  added code of creating make file
mysql-test/r/fulltext.result:
  added FORMAT() for compatible with Windows version
mysql-test/r/fulltext_cache.result:
  added FORMAT()
mysql-test/r/fulltext_multi.result:
  added FORMAT()
mysql-test/r/fulltext_order_by.result:
  added FORMAT()
mysql-test/r/type_float.result:
  added --replace-result
mysql-test/t/fulltext.test:
  added FORMAT()
mysql-test/t/fulltext_cache.test:
  added FORMAT()
mysql-test/t/fulltext_multi.test:
  added FORMAT()
mysql-test/t/fulltext_order_by.test:
  added FORMAT()
mysql-test/t/innodb.test:
  added --replace-result
mysql-test/t/insert.test:
  added --replace_result
mysql-test/t/type_float.test:
  added --replace-result
mysql-test/t/variables.test:
  added --replace_result
2004-09-16 00:47:45 +06:00

29 lines
781 B
Text

DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (
a int(11) NOT NULL auto_increment,
b text,
c varchar(254) default NULL,
PRIMARY KEY (a),
FULLTEXT KEY bb(b),
FULLTEXT KEY cc(c),
FULLTEXT KEY a(b,c)
);
INSERT INTO t1 VALUES (1,'lala lolo lili','oooo aaaa pppp');
INSERT INTO t1 VALUES (2,'asdf fdsa','lkjh fghj');
INSERT INTO t1 VALUES (3,'qpwoei','zmxnvb');
SELECT a, FORMAT(MATCH b AGAINST ('lala lkjh'),6) FROM t1;
a FORMAT(MATCH b AGAINST ('lala lkjh'),6)
1 0.670031
2 0.000000
3 0.000000
SELECT a, FORMAT(MATCH c AGAINST ('lala lkjh'),6) FROM t1;
a FORMAT(MATCH c AGAINST ('lala lkjh'),6)
1 0.000000
2 0.677563
3 0.000000
SELECT a, FORMAT(MATCH b,c AGAINST ('lala lkjh'),6) FROM t1;
a FORMAT(MATCH b,c AGAINST ('lala lkjh'),6)
1 0.648407
2 0.662665
3 0.000000
drop table t1;