[Groonga-mysql-commit] mroonga/mroonga at c0197ff [master] test: create a new database instead of moving an existing database

アーカイブの一覧に戻る

susumu.yata null+****@clear*****
Mon Jun 30 11:20:28 JST 2014


susumu.yata	2014-06-30 11:20:28 +0900 (Mon, 30 Jun 2014)

  New Revision: c0197ff2f8bbed11061ec4cc69f4b352a4b4aec1
  https://github.com/mroonga/mroonga/commit/c0197ff2f8bbed11061ec4cc69f4b352a4b4aec1

  Message:
    test: create a new database instead of moving an existing database
    
    Redmine: fixes #2575
    
    This patch is written by Toshihisa Tashiro. Thanks!!!

  Modified files:
    mysql-test/mroonga/storage/variable/r/database_path_prefix.result
    mysql-test/mroonga/storage/variable/t/database_path_prefix.test

  Modified: mysql-test/mroonga/storage/variable/r/database_path_prefix.result (+4 -0)
===================================================================
--- mysql-test/mroonga/storage/variable/r/database_path_prefix.result    2014-06-29 23:17:58 +0900 (2c021b6)
+++ mysql-test/mroonga/storage/variable/r/database_path_prefix.result    2014-06-30 11:20:28 +0900 (4536dde)
@@ -2,6 +2,8 @@ SET GLOBAL mroonga_database_path_prefix = "test/mroonga.data/";
 SHOW GLOBAL VARIABLES LIKE 'mroonga_database_path_prefix';
 Variable_name	Value
 mroonga_database_path_prefix	test/mroonga.data/
+CREATE DATABASE clean_test;
+USE clean_test;
 CREATE TABLE counts (
 id INT PRIMARY KEY AUTO_INCREMENT
 );
@@ -10,4 +12,6 @@ SELECT * FROM counts;
 id
 1
 DROP TABLE counts;
+DROP DATABASE clean_test;
+USE test;
 SET GLOBAL mroonga_database_path_prefix = NULL;

  Modified: mysql-test/mroonga/storage/variable/t/database_path_prefix.test (+5 -1)
===================================================================
--- mysql-test/mroonga/storage/variable/t/database_path_prefix.test    2014-06-29 23:17:58 +0900 (93128ae)
+++ mysql-test/mroonga/storage/variable/t/database_path_prefix.test    2014-06-30 11:20:28 +0900 (eaac608)
@@ -20,18 +20,22 @@
 
 SET GLOBAL mroonga_database_path_prefix = "test/mroonga.data/";
 SHOW GLOBAL VARIABLES LIKE 'mroonga_database_path_prefix';
+CREATE DATABASE clean_test;
+USE clean_test;
 
 CREATE TABLE counts (
   id INT PRIMARY KEY AUTO_INCREMENT
 );
 
---file_exists $MYSQLD_DATADIR/test/mroonga.data/test.mrn
+--file_exists $MYSQLD_DATADIR/test/mroonga.data/clean_test.mrn
 
 INSERT INTO counts VALUES (NULL);
 
 SELECT * FROM counts;
 
 DROP TABLE counts;
+DROP DATABASE clean_test;
+USE test;
 
 SET GLOBAL mroonga_database_path_prefix = NULL;
 
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-mysql-commit mailing list
アーカイブの一覧に戻る