mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/dlenev/src/mysql-4.1-bg4302 sql/item.cc: Auto merged
This commit is contained in:
@@ -680,6 +680,9 @@ order by col;
|
||||
ERROR 23000: Column 'col' in order clause is ambiguous
|
||||
select col1 from t1, t2 where t1.col1=t2.col2 order by col;
|
||||
ERROR 23000: Column 'col' in order clause is ambiguous
|
||||
select t1.col as t1_col, t2.col2 from t1, t2 where t1.col1=t2.col2
|
||||
order by col;
|
||||
ERROR 23000: Column 'col' in order clause is ambiguous
|
||||
select t1.col as t1_col, t2.col from t1, t2 where t1.col1=t2.col2
|
||||
order by col;
|
||||
t1_col col
|
||||
@@ -696,12 +699,6 @@ col col2
|
||||
1 3
|
||||
2 2
|
||||
3 1
|
||||
select t1.col as t1_col, t2.col2 from t1, t2 where t1.col1=t2.col2
|
||||
order by col;
|
||||
t1_col col2
|
||||
1 1
|
||||
2 2
|
||||
3 3
|
||||
select t2.col2, t2.col, t2.col from t2 order by col;
|
||||
col2 col col
|
||||
3 1 1
|
||||
|
||||
@@ -472,13 +472,14 @@ select t1.col as c1, t2.col as c2 from t1, t2 where t1.col1=t2.col2
|
||||
order by col;
|
||||
--error 1052
|
||||
select col1 from t1, t2 where t1.col1=t2.col2 order by col;
|
||||
--error 1052
|
||||
select t1.col as t1_col, t2.col2 from t1, t2 where t1.col1=t2.col2
|
||||
order by col;
|
||||
|
||||
select t1.col as t1_col, t2.col from t1, t2 where t1.col1=t2.col2
|
||||
order by col;
|
||||
select col2 as c, col as c from t2 order by col;
|
||||
select col2 as col, col as col2 from t2 order by col;
|
||||
select t1.col as t1_col, t2.col2 from t1, t2 where t1.col1=t2.col2
|
||||
order by col;
|
||||
select t2.col2, t2.col, t2.col from t2 order by col;
|
||||
|
||||
select t2.col2 as col from t2 order by t2.col;
|
||||
|
||||
Reference in New Issue
Block a user