[Groonga-mysql-commit] mroonga/mroonga at d99b0bf [master] test: add missing argument test for mroonga_escape()

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Aug 9 19:32:38 JST 2013


Kouhei Sutou	2013-08-09 19:32:38 +0900 (Fri, 09 Aug 2013)

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

  Message:
    test: add missing argument test for mroonga_escape()
    
    TODO:
      * The 1st argument is wrong type
      * The 2st argument is wrong type

  Added files:
    test/sql/suite/mroonga/storage/function/escape/r/query_is_missing.result
    test/sql/suite/mroonga/storage/function/escape/t/query_is_missing.test

  Added: test/sql/suite/mroonga/storage/function/escape/r/query_is_missing.result (+3 -0) 100644
===================================================================
--- /dev/null
+++ test/sql/suite/mroonga/storage/function/escape/r/query_is_missing.result    2013-08-09 19:32:38 +0900 (98213e8)
@@ -0,0 +1,3 @@
+SET NAMES UTF8;
+SELECT mroonga_escape() AS escaped_query;
+ERROR HY000: Can't initialize function 'mroonga_escape'; mroonga_escape(): Incorrect number of arguments: 0 for 1..2

  Added: test/sql/suite/mroonga/storage/function/escape/t/query_is_missing.test (+26 -0) 100644
===================================================================
--- /dev/null
+++ test/sql/suite/mroonga/storage/function/escape/t/query_is_missing.test    2013-08-09 19:32:38 +0900 (39fb831)
@@ -0,0 +1,26 @@
+# 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_CANT_INITIALIZE_UDF
+SELECT mroonga_escape() AS escaped_query;
+
+--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