mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
e03265d4d5
Add quoting for use `database` for mysqlbinlog Removed test ins0000001 Add support for --replace for exec in mysqltest Don't refer to install dir in mysqlbinlog.result BitKeeper/deleted/.del-ins000001.result~f45c599efdf8352b: Delete: mysql-test/r/ins000001.result BitKeeper/deleted/.del-ins000001.test~2428ee5c9b1bc483: Delete: mysql-test/t/ins000001.test client/mysqlbinlog.cc: Removed random chars after filename for LOAD DATA INFILE client/mysqltest.c: Add support for --replace for 'exec' mysql-test/r/drop_temp_table.result: Updated results after quoting change mysql-test/r/fulltext_multi.result: Updated results after quoting change mysql-test/r/fulltext_order_by.result: Updated results after quoting change mysql-test/r/insert.result: New tests mysql-test/r/insert_select.result: Updated results after quoting change mysql-test/r/mix_innodb_myisam_binlog.result: Updated results after quoting change mysql-test/r/mysqlbinlog.result: Updated results after quoting change mysql-test/r/rpl_log.result: Updated results after quoting change mysql-test/t/fulltext_multi.test: Remove 'use' mysql-test/t/fulltext_order_by.test: Remove 'use' mysql-test/t/insert.test: Merge test with ins0000001.test mysql-test/t/mysqlbinlog.test: Don't refer to install dir in result sql/log_event.cc: Add quoting for use `database` for mysqlbinlog support-files/mysql.server.sh: Move pid_file test after arguments have been parsed
29 lines
718 B
Text
29 lines
718 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, MATCH b AGAINST ('lala lkjh') FROM t1;
|
|
a MATCH b AGAINST ('lala lkjh')
|
|
1 0.67003107070923
|
|
2 0
|
|
3 0
|
|
SELECT a, MATCH c AGAINST ('lala lkjh') FROM t1;
|
|
a MATCH c AGAINST ('lala lkjh')
|
|
1 0
|
|
2 0.67756325006485
|
|
3 0
|
|
SELECT a, MATCH b,c AGAINST ('lala lkjh') FROM t1;
|
|
a MATCH b,c AGAINST ('lala lkjh')
|
|
1 0.64840710163116
|
|
2 0.66266459226608
|
|
3 0
|
|
drop table t1;
|