mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Porting from mysql-4.0.
Read comments there if you are interested .. BitKeeper/etc/ignore: Added sql/sql_yacc.yy.orig to the ignore list
This commit is contained in:
@ -86,6 +86,21 @@ explain select a,b from t1 union all select a,b from t2;
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
t1 ALL NULL NULL NULL NULL 4
|
||||
t2 ALL NULL NULL NULL NULL 4
|
||||
explain select xx from t1 union select 1;
|
||||
Unknown column 'xx' in 'field list'
|
||||
explain select a,b from t1 union select 1;
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
t1 ALL NULL NULL NULL NULL 4
|
||||
0 0 No tables used
|
||||
explain select 1 union select a,b from t1 union select 1;
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
0 0 No tables used
|
||||
t1 ALL NULL NULL NULL NULL 4
|
||||
0 0 No tables used
|
||||
explain select a,b from t1 union select 1 limit 0;
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
t1 ALL NULL NULL NULL NULL 4
|
||||
0 0 Impossible WHERE
|
||||
select a,b from t1 into outfile 'skr' union select a,b from t2;
|
||||
Wrong usage of UNION and INTO
|
||||
select a,b from t1 order by a union select a,b from t2;
|
||||
|
@ -24,6 +24,12 @@ select 't1',b,count(*) from t1 group by b UNION select 't2',b,count(*) from t2 g
|
||||
# Test some error conditions with UNION
|
||||
explain select a,b from t1 union all select a,b from t2;
|
||||
|
||||
--error 1054
|
||||
explain select xx from t1 union select 1;
|
||||
explain select a,b from t1 union select 1;
|
||||
explain select 1 union select a,b from t1 union select 1;
|
||||
explain select a,b from t1 union select 1 limit 0;
|
||||
|
||||
--error 1221
|
||||
select a,b from t1 into outfile 'skr' union select a,b from t2;
|
||||
|
||||
|
Reference in New Issue
Block a user