diff options
author | unknown <holyfoot/hf@mysql.com/deer.(none)> | 2006-11-17 12:02:36 +0400 |
---|---|---|
committer | unknown <holyfoot/hf@mysql.com/deer.(none)> | 2006-11-17 12:02:36 +0400 |
commit | 3ebdcee5c64f29e7a4d4876b25f1e7afe6b52a60 (patch) | |
tree | 5c48abc5257e7cd3396ac5f2ca41358267766a0c /mysql-test/r | |
parent | bde03bcec4457189d3993d970d144cf646ce14d6 (diff) | |
download | mariadb-git-3ebdcee5c64f29e7a4d4876b25f1e7afe6b52a60.tar.gz |
merging
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/order_by.result | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mysql-test/r/order_by.result b/mysql-test/r/order_by.result index be29b310434..7b04c1acdc0 100644 --- a/mysql-test/r/order_by.result +++ b/mysql-test/r/order_by.result @@ -760,13 +760,6 @@ xxxxxxxxxxxxxxxxxxxaa xxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxz drop table t1; -create table t1 (a int not null, b int not null, c int not null); -insert t1 values (1,1,1),(1,1,2),(1,2,1); -select a, b from t1 group by a, b order by sum(c); -a b -1 2 -1 1 -drop table t1; create table t1 ( `sid` decimal(8,0) default null, `wnid` varchar(11) not null default '', @@ -881,6 +874,13 @@ num (select num + 2 FROM t1 LIMIT 1) SELECT a.a + 1 AS num FROM t1 a JOIN t1 b ON num = b.a; ERROR 42S22: Unknown column 'num' in 'on clause' DROP TABLE t1; +create table t1 (a int not null, b int not null, c int not null); +insert t1 values (1,1,1),(1,1,2),(1,2,1); +select a, b from t1 group by a, b order by sum(c); +a b +1 2 +1 1 +drop table t1; CREATE TABLE t1 (a int, b int, PRIMARY KEY (a)); INSERT INTO t1 VALUES (1,1), (2,2), (3,3); explain SELECT t1.b as a, t2.b as c FROM |