summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/database/db_driver_reference.rst
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-02-17 18:19:56 +0100
committerAndrey Andreev <narf@devilix.net>2016-02-17 18:19:56 +0100
commit86d2ec40b47f885a6d7e28b9dd519fac3332e7ae (patch)
tree5267ecad8bc0ad56a87a4ed4094626a2589423e1 /user_guide_src/source/database/db_driver_reference.rst
parent82efb383544dc06aef7c628780b74acac31fb622 (diff)
[ci skip] Update docs to reflect escape_like_str() usage with ESCAPE '\!'
Closes #4462
Diffstat (limited to 'user_guide_src/source/database/db_driver_reference.rst')
-rw-r--r--user_guide_src/source/database/db_driver_reference.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/user_guide_src/source/database/db_driver_reference.rst b/user_guide_src/source/database/db_driver_reference.rst
index 1e436ede1..1ecd38968 100644
--- a/user_guide_src/source/database/db_driver_reference.rst
+++ b/user_guide_src/source/database/db_driver_reference.rst
@@ -234,6 +234,13 @@ This article is intended to be a reference for them.
and ``_`` wildcard characters, so that they don't cause
false-positives in LIKE conditions.
+ .. important:: The ``escape_like_str()`` method uses '!' (exclamation mark)
+ to escape special characters for *LIKE* conditions. Because this
+ method escapes partial strings that you would wrap in quotes
+ yourself, it cannot automatically add the ``ESCAPE '!'``
+ condition for you, and so you'll have to manually do that.
+
+
.. php:method:: primary($table)
:param string $table: Table name