[Groonga-mysql-commit] mroonga/mroonga at 3334f5d [master] doc: add simple usage about mroonga_escape

Back to archive index

HAYASHI Kentaro null+****@clear*****
Mon Mar 31 15:57:03 JST 2014


HAYASHI Kentaro	2014-03-31 15:57:03 +0900 (Mon, 31 Mar 2014)

  New Revision: 3334f5db3faf50c385564893d10e6cdcc7a75091
  https://github.com/mroonga/mroonga/commit/3334f5db3faf50c385564893d10e6cdcc7a75091

  Message:
    doc: add simple usage about mroonga_escape

  Modified files:
    doc/source/reference/udf/mroonga_escape.rst

  Modified: doc/source/reference/udf/mroonga_escape.rst (+9 -1)
===================================================================
--- doc/source/reference/udf/mroonga_escape.rst    2014-03-31 15:29:33 +0900 (6abdc41)
+++ doc/source/reference/udf/mroonga_escape.rst    2014-03-31 15:57:03 +0900 (f642ff7)
@@ -20,7 +20,15 @@ mroonga_escape has required parameter and optional parameter::
 Usage
 -----
 
-TODO
+Here is the example query which use special characters to be escaped::
+
+  SELECT * FROM `symbols` WHERE MATCH(`content`) AGAINST(mroonga_escape("+hello_world()", "()") IN BOOLEAN MODE);
+
+Here is the example about special characters which is escaped::
+
+  SELECT mroonga_escape("+-<>~*()\"\:");
+  '\\+\\-\\<\\>\\~\\*\\(\\)\\"\\:
+
 
 Parameters
 ----------
-------------- next part --------------
HTML����������������������������...
Download 



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