1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Proper handling of ORDER BY table.column in UNION's

This commit is contained in:
unknown
2002-12-02 20:18:51 +02:00
parent 36429430c6
commit 47af809c61
28 changed files with 39 additions and 13 deletions

View File

@ -85,10 +85,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;
a b
1 a
2 b
3 c
Table 't1' from one of SELECT's can not be used in order clause
explain (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