[Groonga-mysql-commit] mroonga/mroonga at 96c6e5c [master] test: require MySQL 5.6 for DS-MRR test

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Oct 29 16:53:51 JST 2013


Kouhei Sutou	2013-10-29 16:53:51 +0900 (Tue, 29 Oct 2013)

  New Revision: 96c6e5c8aafeac9715c8284c8f1864c171fba25e
  https://github.com/mroonga/mroonga/commit/96c6e5c8aafeac9715c8284c8f1864c171fba25e

  Message:
    test: require MySQL 5.6 for DS-MRR test
    
    DS-MRR is Disk Sweep Multi Range Read.
    
    It is implemented in MySQL 5.6.

  Copied files:
    mysql-test/mroonga/include/mroonga/have_version_56_or_later.inc
      (from mysql-test/mroonga/wrapper/multi_range_read/t/disk_sweep.test)
  Modified files:
    mysql-test/mroonga/wrapper/multi_range_read/t/disk_sweep.test

  Copied: mysql-test/mroonga/include/mroonga/have_version_56_or_later.inc (+6 -26) 52%
===================================================================
--- mysql-test/mroonga/wrapper/multi_range_read/t/disk_sweep.test    2013-10-29 14:11:07 +0900 (9cb45a8)
+++ mysql-test/mroonga/include/mroonga/have_version_56_or_later.inc    2013-10-29 16:53:51 +0900 (98738f7)
@@ -1,4 +1,4 @@
-# Copyright(C) 2013  Kenji Maruyama <mmmaru777 �� gmail.com>
+# Copyright(C) 2013 Kouhei Sutou <kou �� clear-code.com>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -14,29 +14,9 @@
 # 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/have_innodb.inc
---source ../../../include/mroonga/have_mroonga.inc
+--source ../../include/mroonga/check_version.inc
 
---disable_warnings
-DROP TABLE IF EXISTS many_records;
---enable_warnings
-
-SET optimizer_switch='mrr_cost_based=off';
-
-CREATE TABLE many_records (
-  id INT PRIMARY KEY AUTO_INCREMENT,
-  value INT,
-  KEY (value)
-) COMMENT='engine "InnoDB"';
-
-INSERT INTO many_records (value) VALUES (0), (1), (2), (3);
-
-EXPLAIN SELECT * FROM many_records
-                 WHERE value IN (0, 2);
-
-SELECT * FROM many_records
-         WHERE value IN (0, 2);
-
-DROP TABLE many_records;
-
---source ../../../include/mroonga/have_mroonga_deinit.inc
+if (!$version_56_or_later)
+{
+  skip This test is for MySQL version 5.6.x or later;
+}

  Modified: mysql-test/mroonga/wrapper/multi_range_read/t/disk_sweep.test (+1 -0)
===================================================================
--- mysql-test/mroonga/wrapper/multi_range_read/t/disk_sweep.test    2013-10-29 14:11:07 +0900 (9cb45a8)
+++ mysql-test/mroonga/wrapper/multi_range_read/t/disk_sweep.test    2013-10-29 16:53:51 +0900 (14fe30e)
@@ -14,6 +14,7 @@
 # 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_version_56_or_later.inc
 --source include/have_innodb.inc
 --source ../../../include/mroonga/have_mroonga.inc
 
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-mysql-commit mailing list
Back to archive index