summaryrefslogtreecommitdiff
path: root/mysql-test/t/query_cache.test
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-03-31 09:49:09 +0300
committerunknown <bell@sanja.is.com.ua>2003-03-31 09:49:09 +0300
commit500f98f72342aaea7bdc57d294e26a87d1494e00 (patch)
treea1014229ed839c48e488a253ba1fcc4b017ddfff /mysql-test/t/query_cache.test
parent7bc145c50f9a8a80f78a419e92487f4c4e2b5d3d (diff)
downloadmariadb-git-500f98f72342aaea7bdc57d294e26a87d1494e00.tar.gz
fixed bug 209 (SQL_SELECT_LIMIT and query cache incompatibility)
mysql-test/r/query_cache.result: test of SET OPTION SQL_SELECT_LIMIT mysql-test/t/query_cache.test: test of SET OPTION SQL_SELECT_LIMIT sql/sql_cache.cc: layout fixed SQL_SELECT_LIMIT stored in query cache now sql/sql_parse.cc: room for SQL_SELECT_LAYOUT storing added
Diffstat (limited to 'mysql-test/t/query_cache.test')
-rw-r--r--mysql-test/t/query_cache.test17
1 files changed, 14 insertions, 3 deletions
diff --git a/mysql-test/t/query_cache.test b/mysql-test/t/query_cache.test
index 23950ce9caa..33f226f9253 100644
--- a/mysql-test/t/query_cache.test
+++ b/mysql-test/t/query_cache.test
@@ -401,7 +401,6 @@ select * from t1 where id=2;
#
# Load data invalidation test
#
-
create table t1 (word char(20) not null);
select * from t1;
show status like "Qcache_queries_in_cache";
@@ -412,7 +411,6 @@ drop table t1;
#
# INTO OUTFILE/DUMPFILE test
#
-
drop table if exists t1;
create table t1 (a int);
insert into t1 values (1),(2),(3);
@@ -420,4 +418,17 @@ show status like "Qcache_queries_in_cache";
select * from t1 into outfile "query_caceh.out.file";
select * from t1 limit 1 into dumpfile "query_cache.dump.file";
show status like "Qcache_queries_in_cache";
-drop table t1; \ No newline at end of file
+drop table t1;
+
+#
+# test of SQL_SELECT_LIMIT
+#
+create table t1 (a int);
+insert into t1 values (1),(2);
+show status like "Qcache_queries_in_cache";
+select * from t1;
+SET OPTION SQL_SELECT_LIMIT=1;
+select * from t1;
+show status like "Qcache_queries_in_cache";
+SET OPTION SQL_SELECT_LIMIT=DEFAULT;
+drop table t1;