summaryrefslogtreecommitdiff
path: root/mysql-test/t/myisam.test
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-12-06 01:16:28 +0200
committerunknown <monty@hundin.mysql.fi>2001-12-06 01:16:28 +0200
commitb5cfb7ac01dd00715060470805859a51d6f2caf5 (patch)
tree72b6ce45de206772ff694d62b41d9fc5a16edbe8 /mysql-test/t/myisam.test
parentff8c7348648b2a2e1ce14d8332c065a38a43ca0c (diff)
parent6f8f45e9592aa7f2ca48168d51e1624cce158797 (diff)
downloadmariadb-git-b5cfb7ac01dd00715060470805859a51d6f2caf5.tar.gz
merge with 3.23.47
Docs/manual.texi: Auto merged Build-tools/Do-compile: Auto merged innobase/include/buf0buf.ic: Auto merged myisam/mi_locking.c: Auto merged mysql-test/t/join_outer.test: Auto merged mysys/my_init.c: Auto merged scripts/mysql_config.sh: Auto merged mysql-test/t/myisam.test: Auto merged sql/ha_innobase.h: Auto merged sql/handler.h: Auto merged configure.in: merge mysql-test/r/innodb.result: merge mysql-test/r/join_outer.result: merge mysql-test/r/myisam.result: merge mysql-test/t/innodb.test: merge mysys/mf_iocache2.c: Skip changes in 3.23 sql/sql_select.cc: merge
Diffstat (limited to 'mysql-test/t/myisam.test')
-rw-r--r--mysql-test/t/myisam.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/t/myisam.test b/mysql-test/t/myisam.test
index 93462534b43..861bc807323 100644
--- a/mysql-test/t/myisam.test
+++ b/mysql-test/t/myisam.test
@@ -50,3 +50,19 @@ show index from t1;
optimize table t1;
show index from t1;
drop table t1;
+
+#
+# Test of how ORDER BY works when doing it on the whole table
+#
+
+create table t1 (a int not null, b int not null, c int not null, primary key (a),key(b)) type=myisam;
+insert into t1 values (3,3,3),(1,1,1),(2,2,2),(4,4,4);
+explain select * from t1 order by a;
+explain select * from t1 order by b;
+explain select * from t1 order by c;
+explain select a from t1 order by a;
+explain select b from t1 order by b;
+explain select a,b from t1 order by b;
+explain select a,b from t1;
+explain select a,b,c from t1;
+drop table t1;