[Groonga-mysql-commit] mroonga/mroonga at 44ab7f2 [master] snippet: add a test for unknown collation case

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 24 23:20:34 JST 2013


Kouhei Sutou	2013-10-24 23:20:34 +0900 (Thu, 24 Oct 2013)

  New Revision: 44ab7f2d3662688302e6fd70fb2e125671e77728
  https://github.com/mroonga/mroonga/commit/44ab7f2d3662688302e6fd70fb2e125671e77728

  Message:
    snippet: add a test for unknown collation case

  Added files:
    mysql-test/mroonga/storage/function/snippet/invalid/r/nonexistent_charset.result
    mysql-test/mroonga/storage/function/snippet/invalid/t/nonexistent_charset.test

  Added: mysql-test/mroonga/storage/function/snippet/invalid/r/nonexistent_charset.result (+4 -0) 100644
===================================================================
--- /dev/null
+++ mysql-test/mroonga/storage/function/snippet/invalid/r/nonexistent_charset.result    2013-10-24 23:20:34 +0900 (6790499)
@@ -0,0 +1,4 @@
+SET NAMES UTF8;
+SELECT mroonga_snippet("Invalid charset test", 10, 2, "nonexistent_charset",
+1, 0, "...", "...", "charset", "<", ">");
+ERROR HY000: Unknown collation: 'nonexistent_charset'

  Added: mysql-test/mroonga/storage/function/snippet/invalid/t/nonexistent_charset.test (+27 -0) 100644
===================================================================
--- /dev/null
+++ mysql-test/mroonga/storage/function/snippet/invalid/t/nonexistent_charset.test    2013-10-24 23:20:34 +0900 (a7d214b)
@@ -0,0 +1,27 @@
+# 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
+# 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
+--source ../../../../../include/mroonga/load_mroonga_functions.inc
+
+SET NAMES UTF8;
+
+--error ER_UNKNOWN_COLLATION
+SELECT mroonga_snippet("Invalid charset test", 10, 2, "nonexistent_charset",
+                       1, 0, "...", "...", "charset", "<", ">");
+
+--source ../../../../../include/mroonga/unload_mroonga_functions.inc
+--source ../../../../../include/mroonga/have_mroonga_deinit.inc
-------------- next part --------------
HTML����������������������������...
Download 



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