diff options
author | unknown <ram@mysql.r18.ru> | 2003-01-09 14:35:01 +0400 |
---|---|---|
committer | unknown <ram@mysql.r18.ru> | 2003-01-09 14:35:01 +0400 |
commit | 6fb06a7aca02d04c14cae3b9ee4ef1714ece432c (patch) | |
tree | 3f090cee7105585530663ad7a0c3fe28cc18b417 /mysql-test/t/order_by.test | |
parent | aef11cc9ba86be713834ce0cb4282d4dcf284b23 (diff) | |
download | mariadb-git-6fb06a7aca02d04c14cae3b9ee4ef1714ece432c.tar.gz |
fixed order_by test to make it repeatable
Diffstat (limited to 'mysql-test/t/order_by.test')
-rw-r--r-- | mysql-test/t/order_by.test | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mysql-test/t/order_by.test b/mysql-test/t/order_by.test index e87262042bf..c6bc7e9f868 100644 --- a/mysql-test/t/order_by.test +++ b/mysql-test/t/order_by.test @@ -344,11 +344,11 @@ CREATE TABLE t1 ( KEY LongField (FieldKey,LongVal), KEY StringField (FieldKey,StringVal(32)) ); -INSERT INTO t1 VALUES ('0',3,'0'),('1',2,'1'),('1',1,'3'), ('1',0,'2'); +INSERT INTO t1 VALUES ('0',3,'0'),('0',2,'1'),('0',1,'2'),('1',2,'1'),('1',1,'3'), ('1',0,'2'),('2',3,'0'),('2',2,'1'),('2',1,'2'),('3',2,'1'),('3',1,'2'),('3','3','3'); EXPLAIN SELECT * FROM t1 WHERE FieldKey = '1' ORDER BY LongVal; SELECT * FROM t1 WHERE FieldKey = '1' ORDER BY LongVal; -EXPLAIN SELECT * FROM t1 WHERE FieldKey > '0' ORDER BY LongVal; -SELECT * FROM t1 WHERE FieldKey > '0' ORDER BY LongVal; -EXPLAIN SELECT * FROM t1 WHERE FieldKey > '0' ORDER BY FieldKey, LongVal; -SELECT * FROM t1 WHERE FieldKey > '0' ORDER BY FieldKey, LongVal; +EXPLAIN SELECT * FROM t1 WHERE FieldKey > '2' ORDER BY LongVal; +SELECT * FROM t1 WHERE FieldKey > '2' ORDER BY LongVal; +EXPLAIN SELECT * FROM t1 WHERE FieldKey > '2' ORDER BY FieldKey, LongVal; +SELECT * FROM t1 WHERE FieldKey > '2' ORDER BY FieldKey, LongVal; DROP TABLE t1; |