diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-09-06 13:58:22 +0500 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-09-06 13:58:22 +0500 |
commit | 7d0df267806962fc9151936a560ffc9ac9724deb (patch) | |
tree | d0012c214c05b4ab904c8622497977966de32100 /mysql-test/r | |
parent | 4b4af1c1839cd6451d0cf03efa3ceca1a491d2a1 (diff) | |
parent | 1230daf8f281bbb1ca07364b9a8c18ea4aa02a4d (diff) | |
download | mariadb-git-7d0df267806962fc9151936a560ffc9ac9724deb.tar.gz |
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1
into gw.mysql.r18.ru:/usr/home/ram/work/4.1.b5291
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/fulltext2.result | 9 | ||||
-rw-r--r-- | mysql-test/r/merge.result | 9 | ||||
-rw-r--r-- | mysql-test/r/ps.result | 11 | ||||
-rw-r--r-- | mysql-test/r/union.result | 8 |
4 files changed, 37 insertions, 0 deletions
diff --git a/mysql-test/r/fulltext2.result b/mysql-test/r/fulltext2.result index 0fdb7d4dbd1..0b1d8eb9a15 100644 --- a/mysql-test/r/fulltext2.result +++ b/mysql-test/r/fulltext2.result @@ -7,6 +7,15 @@ FULLTEXT KEY (a) repair table t1 quick; Table Op Msg_type Msg_text test.t1 repair status OK +check table t1; +Table Op Msg_type Msg_text +test.t1 check status OK +optimize table t1; +Table Op Msg_type Msg_text +test.t1 optimize status OK +check table t1; +Table Op Msg_type Msg_text +test.t1 check status OK select count(*) from t1 where match a against ('aaaxxx'); count(*) 260 diff --git a/mysql-test/r/merge.result b/mysql-test/r/merge.result index 83f8230f11c..5755033190b 100644 --- a/mysql-test/r/merge.result +++ b/mysql-test/r/merge.result @@ -642,3 +642,12 @@ x y 1 3 1 2 drop table t1,t2,t3; +create table t1 (a int); +create table t2 (a int); +insert into t1 values (0); +insert into t2 values (1); +create table t3 engine=merge union=(t1, t2) select * from t1; +ERROR HY000: You can't specify target table 't1' for update in FROM clause +create table t3 engine=merge union=(t1, t2) select * from t2; +ERROR HY000: You can't specify target table 't2' for update in FROM clause +drop table t1, t2; diff --git a/mysql-test/r/ps.result b/mysql-test/r/ps.result index e161904cd6f..321b8894796 100644 --- a/mysql-test/r/ps.result +++ b/mysql-test/r/ps.result @@ -259,3 +259,14 @@ execute `ü`; 1234 1234 set names default; +create table t1 (a varchar(10)) charset=utf8; +insert into t1 (a) values ('yahoo'); +set character_set_connection=latin1; +prepare stmt from 'select a from t1 where a like ?'; +set @var='google'; +execute stmt using @var; +a +execute stmt using @var; +a +deallocate prepare stmt; +drop table t1; diff --git a/mysql-test/r/union.result b/mysql-test/r/union.result index afee837b1a5..2f42bedf67a 100644 --- a/mysql-test/r/union.result +++ b/mysql-test/r/union.result @@ -436,6 +436,14 @@ select length(version()) > 1 as `*` UNION select 2; * 1 2 +create table t1 (a int); +insert into t1 values (0), (3), (1), (2); +explain (select * from t1) union (select * from t1) order by a; +id select_type table type possible_keys key key_len ref rows Extra +1 PRIMARY t1 ALL NULL NULL NULL NULL 4 +2 UNION t1 ALL NULL NULL NULL NULL 4 +NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL Using filesort +drop table t1; CREATE TABLE t1 ( id int(3) unsigned default '0') ENGINE=MyISAM; INSERT INTO t1 (id) VALUES("1"); CREATE TABLE t2 ( id int(3) unsigned default '0', id_master int(5) default '0', text1 varchar(5) default NULL, text2 varchar(5) default NULL) ENGINE=MyISAM; |