summaryrefslogtreecommitdiff
path: root/mysql-test/r/select_found.result
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-02-08 03:21:34 +0200
committerunknown <monty@hundin.mysql.fi>2002-02-08 03:21:34 +0200
commitbc1fc0a0440b970531f3c83c5adb5a3f5bd82b96 (patch)
tree6fb2be8a25c87f580e5d7831b049ad0839a48237 /mysql-test/r/select_found.result
parente1a9546858eaca1a9556852ce23560e5dc2d1717 (diff)
downloadmariadb-git-bc1fc0a0440b970531f3c83c5adb5a3f5bd82b96.tar.gz
Fix some bugs introduced with the new my_getopt
Added counting of rollback's and commits Fixed bug in 'SELECT 0 LIMIT 0' Fixed bug in 'SELECT SQL_CALC_FOUND_ROWS' Docs/manual.texi: Changelog configure.in: Cleanup myisam/myisamchk.c: Fix some bugs introduced with the new my_getopt mysql-test/r/limit.result: Test for bugfix mysql-test/r/rpl000001.result: fix wrong result mysql-test/r/select.result: Fix things after fixing ignore index() mysql-test/r/select_found.result: Test of bug in SQL_CALC_FOUND_ROWS mysql-test/t/limit.test: Test bug in LIMIT 0 mysql-test/t/rpl000001.test: fix wrong result mysql-test/t/select_found.test: Test of bug in SQL_CALC_FOUND_ROWS sql/handler.cc: Added counting of rollback's and commits sql/mysql_priv.h: Added counting of rollback's and commits sql/mysqld.cc: Added counting of rollback's and commits sql/sql_select.cc: Fixed bug in 'SELECT 0 LIMIT 0' Fixed bug in 'SELECT SQL_CALC_FOUND_ROWS'
Diffstat (limited to 'mysql-test/r/select_found.result')
-rw-r--r--mysql-test/r/select_found.result17
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/r/select_found.result b/mysql-test/r/select_found.result
index 2fab1642cc5..3a84c3e52da 100644
--- a/mysql-test/r/select_found.result
+++ b/mysql-test/r/select_found.result
@@ -45,3 +45,20 @@ select found_rows();
FOUND_ROWS()
8
drop table t1;
+create table t1 (a int not null primary key);
+insert into t1 values (1),(2),(3),(4),(5);
+select sql_calc_found_rows a from t1 where a in (1,2,3) order by a desc limit 0,2;
+a
+3
+2
+select FOUND_ROWS();
+FOUND_ROWS()
+3
+select sql_calc_found_rows a from t1 where a in (1,2,3) order by a+2 desc limit 0,2;
+a
+3
+2
+select FOUND_ROWS();
+FOUND_ROWS()
+3
+drop table t1;