[Groonga-mysql-commit] mroonga/mroonga at f606f9f [master] test: alter table with fulltext index which refer to table causes mysqld crash

アーカイブの一覧に戻る

HAYASHI Kentaro null+****@clear*****
Thu Feb 13 17:04:57 JST 2014


HAYASHI Kentaro	2014-02-13 17:04:57 +0900 (Thu, 13 Feb 2014)

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

  Message:
    test: alter table with fulltext index which refer to table causes mysqld crash
    
    [groonga-dev,02130]
    
    Reported by Naoya Murakami. Thanks!!!

  Added files:
    mysql-test/mroonga/storage/alter_table/t/fulltext_with_reference_table.test

  Added: mysql-test/mroonga/storage/alter_table/t/fulltext_with_reference_table.test (+53 -0) 100644
===================================================================
--- /dev/null
+++ mysql-test/mroonga/storage/alter_table/t/fulltext_with_reference_table.test    2014-02-13 17:04:57 +0900 (cd03d0a)
@@ -0,0 +1,53 @@
+# Copyright(C) 2014 HAYASHI Kentaro <hayashi �� 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
+# 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/not_embedded.inc
+--source ../../../include/mroonga/have_mroonga.inc
+
+--disable_warnings
+DROP TABLE IF EXISTS tags;
+DROP TABLE IF EXISTS bugs;
+--enable_warnings
+
+CREATE TABLE tags (
+  name VARCHAR(64) PRIMARY KEY
+) ENGINE=mroonga DEFAULT CHARSET=utf8 COMMENT='default_tokenizer "TokenDelimit"';
+
+CREATE TABLE bugs (
+  id INT UNSIGNED PRIMARY KEY,
+  tags VARCHAR(40) COMMENT 'type "tags"'
+) ENGINE=mroonga DEFAULT CHARSET=utf8;
+
+INSERT INTO tags (name) VALUES ("Groonga");
+INSERT INTO bugs (id, tags) VALUES (1, "Groonga Mroonga");
+
+SHOW CREATE TABLE tags;
+SHOW CREATE TABLE bugs;
+
+SELECT * FROM bugs;
+
+ALTER TABLE bugs ADD FULLTEXT INDEX bugs_tags_index (tags) COMMENT 'table "tags"';
+
+SELECT * FROM bugs
+  WHERE MATCH(tags) AGAINST("Groonga");
+
+SHOW CREATE TABLE tags;
+SHOW CREATE TABLE bugs;
+
+DROP TABLE bugs;
+DROP TABLE tags;
+
+--source ../../../include/mroonga/have_mroonga_deinit.inc
-------------- next part --------------
HTML����������������������������...
ダウンロード 



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