summaryrefslogtreecommitdiff
path: root/mysql-test/r/order_by.result
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-05-15 11:20:42 +0200
committerunknown <serg@serg.mylan>2004-05-15 11:20:42 +0200
commitb40430e08cf40d931c511d4d31ea517b7294417b (patch)
tree02cedb93b3060a7ef0b294c53395d6497cfc26b1 /mysql-test/r/order_by.result
parentf16022dfae6ea7659715c6062decca4d48038bc3 (diff)
downloadmariadb-git-b40430e08cf40d931c511d4d31ea517b7294417b.tar.gz
bad old merge fixed
mysql-test/r/order_by.result: buggy results bug#3681 mysql-test/t/order_by.test: test for bug#3681
Diffstat (limited to 'mysql-test/r/order_by.result')
-rw-r--r--mysql-test/r/order_by.result9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/r/order_by.result b/mysql-test/r/order_by.result
index 1a10c9c6ce9..5edffdacc98 100644
--- a/mysql-test/r/order_by.result
+++ b/mysql-test/r/order_by.result
@@ -85,6 +85,15 @@ i
1
3
drop table t1;
+create table t1 ( pk int primary key, name varchar(255) not null, number varchar(255) not null);
+insert into t1 values (1, 'Gamma', '123'), (2, 'Gamma Ext', '123a'), (3, 'Alpha', '001'), (4, 'Beta', '200c');
+select distinct t1.name as 'Building Name',t1.number as 'Building Number' from t1 order by t1.name asc;
+Building Name Building Number
+Gamma 123
+Gamma Ext 123a
+Alpha 001
+Beta 200c
+drop table t1;
create table t1 (id int not null,col1 int not null,col2 int not null,index(col1));
insert into t1 values(1,2,2),(2,2,1),(3,1,2),(4,1,1),(5,1,4),(6,2,3),(7,3,1),(8,2,4);
select * from t1 order by col1,col2;