summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2002-11-18 14:24:56 +0200
committerunknown <Sinisa@sinisa.nasamreza.org>2002-11-18 14:24:56 +0200
commit4e864685b3cc348e5928c0ed3f1fb6661a006a23 (patch)
tree307b1e8bfc99b0adf8b3521f12353b8a3493df09 /mysql-test/r
parent0fb3b8d9abc3eb2e3072c2f8681099e7db0a256e (diff)
parenta40a9d59161e2de19551b0bd1ad016681741e918 (diff)
downloadmariadb-git-4e864685b3cc348e5928c0ed3f1fb6661a006a23.tar.gz
Merge sinisa@work.mysql.com:/home/bk/mysql-4.1
into sinisa.nasamreza.org:/mnt/work/mysql-4.1 sql/sql_select.cc: Auto merged
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/derived.result25
-rw-r--r--mysql-test/r/select_found.result10
2 files changed, 35 insertions, 0 deletions
diff --git a/mysql-test/r/derived.result b/mysql-test/r/derived.result
index 0290d0755d5..204ca86f306 100644
--- a/mysql-test/r/derived.result
+++ b/mysql-test/r/derived.result
@@ -40,3 +40,28 @@ a
select 1 from (select 1);
1
1
+drop table if exists t1;
+create table t1(a int not null, t char(8), index(a));
+SELECT * FROM (SELECT * FROM t1) ORDER BY a ASC LIMIT 0,20;
+a t
+1 1
+2 2
+3 3
+4 4
+5 5
+6 6
+7 7
+8 8
+9 9
+10 10
+11 11
+12 12
+13 13
+14 14
+15 15
+16 16
+17 17
+18 18
+19 19
+20 20
+drop table if exists t1;
diff --git a/mysql-test/r/select_found.result b/mysql-test/r/select_found.result
index 1c2cd7da894..6fb9ea0ee0b 100644
--- a/mysql-test/r/select_found.result
+++ b/mysql-test/r/select_found.result
@@ -168,4 +168,14 @@ test2 2 2
SELECT FOUND_ROWS();
FOUND_ROWS()
2
+SELECT SQL_CALC_FOUND_ROWS 1 FROM (SELECT 1) LIMIT 0;
+1
+SELECT FOUND_ROWS();
+FOUND_ROWS()
+1
+SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 0;
+titre numeropost maxnumrep
+SELECT FOUND_ROWS();
+FOUND_ROWS()
+3
drop table t1;