summaryrefslogtreecommitdiff
path: root/mysql-test/t/order_by.test
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2004-03-26 17:01:13 +0200
committerunknown <Sinisa@sinisa.nasamreza.org>2004-03-26 17:01:13 +0200
commit9cc7549518ac18b095895b18569ddcf58a392a9a (patch)
tree73c4a6a6546337edc2fb3fec393ab6828cdf6c1e /mysql-test/t/order_by.test
parent72ebff9d9d7255961f4e78c560c0788c281e1f36 (diff)
downloadmariadb-git-9cc7549518ac18b095895b18569ddcf58a392a9a.tar.gz
order_by.result:
result of the test case for FORCE INDEX on ORDER BY order_by.test: test case for FORCE INDEX on ORDER BY sql_select.cc: Changing behaviour that MySQL server takes FORCE INDEX clause into account when optimising ORDER BY clause sql/sql_select.cc: Changing behaviour that MySQL server takes FORCE INDEX clause into account when optimising ORDER BY clause mysql-test/t/order_by.test: test case for FORCE INDEX on ORDER BY mysql-test/r/order_by.result: result of the test case for FORCE INDEX on ORDER BY
Diffstat (limited to 'mysql-test/t/order_by.test')
-rw-r--r--mysql-test/t/order_by.test13
1 files changed, 12 insertions, 1 deletions
diff --git a/mysql-test/t/order_by.test b/mysql-test/t/order_by.test
index 8215ec84ae3..86ecc4aa70d 100644
--- a/mysql-test/t/order_by.test
+++ b/mysql-test/t/order_by.test
@@ -352,4 +352,15 @@ CREATE TABLE t1 (a INT, b INT);
SET @id=0;
UPDATE t1 SET a=0 ORDER BY (a=@id), b;
DROP TABLE t1;
-
+create table t1(id int not null auto_increment primary key, t char(12));
+disable_query_log;
+let $1 = 1000;
+while ($1)
+ {
+ eval insert into t1(t) values ('$1');
+ dec $1;
+ }
+enable_query_log;
+explain select id,t from t1 order by id;
+explain select id,t from t1 force index (primary) order by id;
+drop table t1; \ No newline at end of file