All pages
Powered by GitBook
1 of 1

Loading...

mroonga_escape

This function escapes special characters in a string to make it safe for use in Mroonga full-text search queries.

Syntax

mroonga_escape (string [,special_characters])
  • string - required parameter specifying the text you want to escape

  • special_characters - optional parameter specifying the characters to escape

Description

mroonga_escape is a (UDF) included with the , used for escaping a string. See for details on creating this UDF if required.

If no special_characters parameter is provided, by default +-<>*()": are escaped.

Returns the escaped string.

Example

See Also

This page is licensed: CC BY-SA / Gnu FDL

user-defined function
Mroonga storage engine
Creating Mroonga User-Defined Functions
Creating Mroonga User-Defined Functions
SELECT mroonga_escape("+-<>~*()\"\:");
'\\+\\-\\<\\>\\~\\*\\(\\)\\"\\: