diff options
author | Andrey Andreev <narf@devilix.net> | 2018-09-05 15:54:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-05 15:54:42 +0200 |
commit | 90332ac3ce82c0b29ceca116655cf3b98365f79b (patch) | |
tree | cf0a5d59070f85e1619b5bba951b14acd83e74c4 /user_guide_src/source | |
parent | 8537680955fbc045bf8011a2915e18583a91d52f (diff) | |
parent | c0c9ebf077e23b18bf94225154671feab1369466 (diff) |
[ci skip] Merge pull request #5583 from johndekroon/develop
Documented undocumented feature
Diffstat (limited to 'user_guide_src/source')
-rw-r--r-- | user_guide_src/source/database/query_builder.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/user_guide_src/source/database/query_builder.rst b/user_guide_src/source/database/query_builder.rst index 860b34d4c..a33c7073b 100644 --- a/user_guide_src/source/database/query_builder.rst +++ b/user_guide_src/source/database/query_builder.rst @@ -358,13 +358,14 @@ searches. // WHERE `title` LIKE '%match%' ESCAPE '!' AND `body` LIKE '%match% ESCAPE '!' If you want to control where the wildcard (%) is placed, you can use - an optional third argument. Your options are 'before', 'after' and + an optional third argument. Your options are 'before', 'after', 'none' and 'both' (which is the default). :: $this->db->like('title', 'match', 'before'); // Produces: WHERE `title` LIKE '%match' ESCAPE '!' $this->db->like('title', 'match', 'after'); // Produces: WHERE `title` LIKE 'match%' ESCAPE '!' + $this->db->like('title', 'match', 'none'); // Produces: WHERE `title` LIKE 'match' ESCAPE '!' $this->db->like('title', 'match', 'both'); // Produces: WHERE `title` LIKE '%match%' ESCAPE '!' #. **Associative array method:** |