[Groonga-mysql-commit] mroonga/mroonga at fcbd5d5 [master] test: add a test for specifying normalizer to table with options

Back to archive index
Kouhei Sutou null+****@clear*****
Fri Feb 15 16:49:31 JST 2019


Kouhei Sutou	2019-02-15 16:49:31 +0900 (Fri, 15 Feb 2019)

  Revision: fcbd5d5161ecc81617705338d3c30be6297a22d4
  https://github.com/mroonga/mroonga/commit/fcbd5d5161ecc81617705338d3c30be6297a22d4

  Message:
    test: add a test for specifying normalizer to table with options

  Added files:
    mysql-test/mroonga/storage/create/table/table/normalizer/r/option.result
    mysql-test/mroonga/storage/create/table/table/normalizer/t/option.test

  Added: mysql-test/mroonga/storage/create/table/table/normalizer/r/option.result (+16 -0) 100644
===================================================================
--- /dev/null
+++ mysql-test/mroonga/storage/create/table/table/normalizer/r/option.result    2019-02-15 16:49:31 +0900 (7be235d5)
@@ -0,0 +1,16 @@
+DROP TABLE IF EXISTS terms;
+SET NAMES utf8mb4;
+CREATE TABLE terms (
+term VARCHAR(64) NOT NULL PRIMARY KEY
+) COMMENT='normalizer "NormalizerNFKC100(''unify_kana'', true)"'
+  DEFAULT CHARSET=utf8mb4;
+SELECT mroonga_command("dump --dump_plugins no");
+mroonga_command("dump --dump_plugins no")
+table_create mroonga_operations TABLE_NO_KEY
+column_create mroonga_operations record COLUMN_SCALAR UInt32
+column_create mroonga_operations table COLUMN_SCALAR ShortText
+column_create mroonga_operations type COLUMN_SCALAR ShortText
+
+table_create terms TABLE_PAT_KEY ShortText --normalizer "NormalizerNFKC100(\"unify_kana\", true)"
+column_create terms term COLUMN_SCALAR ShortText
+DROP TABLE terms;

  Added: mysql-test/mroonga/storage/create/table/table/normalizer/t/option.test (+36 -0) 100644
===================================================================
--- /dev/null
+++ mysql-test/mroonga/storage/create/table/table/normalizer/t/option.test    2019-02-15 16:49:31 +0900 (07c53941)
@@ -0,0 +1,36 @@
+# Copyright(C) 2019  Kouhei Sutou <kou****@clear*****>
+#
+# 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+--source ../../../../../../include/mroonga/have_mroonga.inc
+--source ../../../../../../include/mroonga/load_mroonga_functions.inc
+
+--disable_warnings
+DROP TABLE IF EXISTS terms;
+--enable_warnings
+
+SET NAMES utf8mb4;
+
+CREATE TABLE terms (
+  term VARCHAR(64) NOT NULL PRIMARY KEY
+) COMMENT='normalizer "NormalizerNFKC100(''unify_kana'', true)"'
+  DEFAULT CHARSET=utf8mb4;
+
+SELECT mroonga_command("dump --dump_plugins no");
+
+DROP TABLE terms;
+
+--source ../../../../../../include/mroonga/unload_mroonga_functions.inc
+--source ../../../../../../include/mroonga/have_mroonga_deinit.inc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-mysql-commit/attachments/20190215/99f796c5/attachment-0001.html>


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