summaryrefslogtreecommitdiff
path: root/storage/mroonga/mysql-test/mroonga/storage/t/optimization_count_skip_TODO_SPLIT_ME.test
diff options
context:
space:
mode:
Diffstat (limited to 'storage/mroonga/mysql-test/mroonga/storage/t/optimization_count_skip_TODO_SPLIT_ME.test')
-rw-r--r--storage/mroonga/mysql-test/mroonga/storage/t/optimization_count_skip_TODO_SPLIT_ME.test61
1 files changed, 61 insertions, 0 deletions
diff --git a/storage/mroonga/mysql-test/mroonga/storage/t/optimization_count_skip_TODO_SPLIT_ME.test b/storage/mroonga/mysql-test/mroonga/storage/t/optimization_count_skip_TODO_SPLIT_ME.test
new file mode 100644
index 00000000000..669868c6c7f
--- /dev/null
+++ b/storage/mroonga/mysql-test/mroonga/storage/t/optimization_count_skip_TODO_SPLIT_ME.test
@@ -0,0 +1,61 @@
+# Copyright(C) 2010 Kentoku SHIBA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+--source ../../include/mroonga/have_mroonga.inc
+
+--disable_warnings
+drop table if exists t1, t2, t3;
+--enable_warnings
+
+flush status;
+create table t1 (c1 int primary key, c2 int, c3 text, key idx1(c2), fulltext index ft(c3));
+insert into t1 values(1,10,"aa ii uu ee oo");
+insert into t1 values(2,20,"ka ki ku ke ko");
+insert into t1 values(3,30,"sa si su se so");
+insert into t1 values(4,40,"ta ti tu te to");
+insert into t1 values(5,50,"aa ii uu ee oo");
+show status like 'mroonga_count_skip';
+select * from t1;
+show status like 'mroonga_count_skip';
+select count(*) from t1;
+show status like 'mroonga_count_skip';
+select * from t1 force index(primary) where c1 between 2 and 4;
+show status like 'mroonga_count_skip';
+select count(*) from t1 force index(primary) where c1 between 2 and 4;
+show status like 'mroonga_count_skip';
+select c1 from t1 force index(primary) where c1 < 3;
+show status like 'mroonga_count_skip';
+select count(c1) from t1 force index(primary) where c1 < 3;
+show status like 'mroonga_count_skip';
+select 1 from t1 force index(primary) where c1 > 3;
+show status like 'mroonga_count_skip';
+select count(1) from t1 force index(primary) where c1 > 3;
+show status like 'mroonga_count_skip';
+select * from t1 where match(c3) against("su");
+show status like 'mroonga_count_skip';
+select count(*) from t1 where match(c3) against("su");
+show status like 'mroonga_count_skip';
+select * from t1 where match(c3) against("+su" in boolean mode);
+show status like 'mroonga_count_skip';
+select count(*) from t1 where match(c3) against("+su" in boolean mode);
+show status like 'mroonga_count_skip';
+select * from t1 force index(idx1) where c2 between 20 and 40;
+show status like 'mroonga_count_skip';
+select count(*) from t1 force index(idx1) where c2 between 20 and 40;
+show status like 'mroonga_count_skip';
+drop table t1;
+
+--source ../../include/mroonga/have_mroonga_deinit.inc