diff options
author | sasha@mysql.sashanet.com <> | 2001-09-27 23:05:54 -0600 |
---|---|---|
committer | sasha@mysql.sashanet.com <> | 2001-09-27 23:05:54 -0600 |
commit | bb66c80aeba0e7ffeb4781d8570644b10479f9a6 (patch) | |
tree | 57e877bfc39c6dc5d9340ff9c84c6652d67724b0 /mysql-test/r/fulltext_distinct.result | |
parent | 043deed839271cf10bd3af31d2e109694952be0c (diff) | |
download | mariadb-git-bb66c80aeba0e7ffeb4781d8570644b10479f9a6.tar.gz |
client/mysqlmanagerc.c
added support for quiet
increased line buffer size
client/mysqltest.c
fixed memory leak
added query logging to result file
added error message logging to result file
added enable_query_log/disable_query_log
mysql-test/mysql-test-run.sh
converted tests to use mysqlmanager
Updated test results
Diffstat (limited to 'mysql-test/r/fulltext_distinct.result')
-rw-r--r-- | mysql-test/r/fulltext_distinct.result | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mysql-test/r/fulltext_distinct.result b/mysql-test/r/fulltext_distinct.result index 9729eb59c10..801d82dc6a2 100644 --- a/mysql-test/r/fulltext_distinct.result +++ b/mysql-test/r/fulltext_distinct.result @@ -1,10 +1,41 @@ +DROP TABLE IF EXISTS t1; +CREATE TABLE t1 ( +id mediumint unsigned NOT NULL auto_increment, +tag char(6) NOT NULL default '', +value text NOT NULL default '', +PRIMARY KEY (id), +KEY kt(tag), +KEY kv(value(15)), +FULLTEXT KEY kvf(value) +) TYPE=MyISAM; +DROP TABLE IF EXISTS t2; +CREATE TABLE t2 ( +id_t2 mediumint unsigned NOT NULL default '0', +id_t1 mediumint unsigned NOT NULL default '0', +field_number tinyint unsigned NOT NULL default '0', +PRIMARY KEY (id_t2,id_t1,field_number), +KEY id_t1(id_t1) +) TYPE=MyISAM; +INSERT INTO t1 (tag,value) VALUES ('foo123','bar111'); +INSERT INTO t2 VALUES (2231626,64280,0); +INSERT INTO t1 (tag,value) VALUES ('foo123','bar222'); +INSERT INTO t2 VALUES (2231626,64281,0); +insert into t1 (tag,value) values ('bar345','baz333 ar'); +insert into t2 values (12346, 3, 1); +select * from t1; id tag value 1 foo123 bar111 2 foo123 bar222 3 bar345 baz333 ar +select * from t2; id_t2 id_t1 field_number 12346 3 1 2231626 64280 0 2231626 64281 0 +SELECT DISTINCT t2.id_t2 +FROM t2, t1 +WHERE MATCH (t1.value) AGAINST ('baz333') +AND t1.id = t2.id_t1; id_t2 12346 +DROP TABLE t1,t2; |