mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Language/consistency edits to error messages
and affected test results.
This commit is contained in:
@ -81,7 +81,7 @@ a b
|
||||
2 b
|
||||
1 a
|
||||
(select a,b from t1 limit 2) union all (select a,b from t2 order by a limit 1) order by t1.b;
|
||||
ERROR 42000: Table 't1' from one of SELECT's can not be used in global ORDER clause
|
||||
ERROR 42000: Table 't1' from one of SELECTs can not be used in global ORDER clause
|
||||
explain extended (select a,b from t1 limit 2) union all (select a,b from t2 order by a limit 1) order by b desc;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t1 ALL NULL NULL NULL NULL 4
|
||||
@ -117,11 +117,11 @@ ERROR 21000: The used SELECT statements have a different number of columns
|
||||
explain select a,b from t1 union select 1 limit 0;
|
||||
ERROR 21000: The used SELECT statements have a different number of columns
|
||||
select a,b from t1 into outfile 'skr' union select a,b from t2;
|
||||
ERROR HY000: Wrong usage of UNION and INTO
|
||||
ERROR HY000: Incorrect usage of UNION and INTO
|
||||
select a,b from t1 order by a union select a,b from t2;
|
||||
ERROR HY000: Wrong usage of UNION and ORDER BY
|
||||
ERROR HY000: Incorrect usage of UNION and ORDER BY
|
||||
insert into t3 select a from t1 order by a union select a from t2;
|
||||
ERROR HY000: Wrong usage of UNION and ORDER BY
|
||||
ERROR HY000: Incorrect usage of UNION and ORDER BY
|
||||
create table t3 select a,b from t1 union select a from t2;
|
||||
ERROR 21000: The used SELECT statements have a different number of columns
|
||||
select a,b from t1 union select a from t2;
|
||||
@ -131,7 +131,7 @@ ERROR 21000: The used SELECT statements have a different number of columns
|
||||
select a from t1 union select * from t2;
|
||||
ERROR 21000: The used SELECT statements have a different number of columns
|
||||
select * from t1 union select SQL_BUFFER_RESULT * from t2;
|
||||
ERROR 42000: Wrong usage/placement of 'SQL_BUFFER_RESULT'
|
||||
ERROR 42000: Incorrect usage/placement of 'SQL_BUFFER_RESULT'
|
||||
create table t3 select a,b from t1 union all select a,b from t2;
|
||||
insert into t3 select a,b from t1 union all select a,b from t2;
|
||||
replace into t3 select a,b as c from t1 union all select a,b from t2;
|
||||
@ -424,7 +424,7 @@ a
|
||||
3
|
||||
3
|
||||
(SELECT * FROM t1) UNION all (SELECT SQL_CALC_FOUND_ROWS * FROM t2) LIMIT 1;
|
||||
ERROR 42000: Wrong usage/placement of 'SQL_CALC_FOUND_ROWS'
|
||||
ERROR 42000: Incorrect usage/placement of 'SQL_CALC_FOUND_ROWS'
|
||||
create temporary table t1 select a from t1 union select a from t2;
|
||||
drop temporary table t1;
|
||||
create table t1 select a from t1 union select a from t2;
|
||||
|
Reference in New Issue
Block a user