summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNithin Meppurathu <admin@nitmedia.com>2011-08-21 18:05:17 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-10-27 14:03:17 +0200
commitda6aa15a41c2286ca161d036a02f6857ce060e27 (patch)
treef6c6bfa678ca3f38be9f8c599dd97b46fad9e06d
parente06f2cb3700edd13426af4b66d3f2a4d0fefd080 (diff)
updated changelog and documentation for active record new 3rd argument option #none# to like clause
-rw-r--r--user_guide/changelog.html3
-rw-r--r--user_guide/database/active_record.html7
2 files changed, 10 insertions, 0 deletions
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index faa96b82f..37dcaea45 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -81,6 +81,8 @@ Change Log
<li>Added a <a href="http://www.cubrid.org/" target="_blank">CUBRID</a> driver to the <a href="libraries/database.html">Database Driver</a>. Thanks to the CUBRID team for supplying this patch.</li>
<li>Added a <a href="http://www.php.net/manual/en/intro.pdo.php" target="_blank">PDO</a> driver to the <a href="libraries/database.html">Database Driver</a>.</li>
<li>Typecast limit and offset in the <a href="database/queries.html">Database Driver</a> to integers to avoid possible injection.</li>
+ <li>Added additional option 'none' for the optional third argument for <kbd>$this->db->like()</kbd> in the <a href="database/active_record.html">Database Driver</a>.
+ </li>
</ul>
</li>
<li>Libraries
@@ -124,6 +126,7 @@ Change Log
<li>Fixed a bug (#60) - Added _file_mime_type() method to the <a href="libraries/file_uploading.html">File Uploading Library</a> in order to fix a possible MIME-type injection (also fixes bug #394).</li>
<li>Fixed a bug (#537) - Support for all wav type in browser.</li>
<li>Fixed a bug (#576) - Using ini_get() function to detect if apc is enabled or not.</li>
+ <li>Fixed a bug (#160) - Removed unneeded array copy in the file cache driver.</li>
</ul>
<h2>Version 2.0.3</h2>
diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html
index 074f869b4..bd3c07d88 100644
--- a/user_guide/database/active_record.html
+++ b/user_guide/database/active_record.html
@@ -334,6 +334,13 @@ $this->db->or_where('id >', $id);
$this-&gt;db-&gt;like('title', 'match', 'both'); <br />
// Produces: WHERE title LIKE '%match%' </code> </li>
+If you do not want to use the wildcard (%) you can pass to the optional third argument the option 'none'.
+
+<code>
+ $this-&gt;db-&gt;like('title', 'match', 'none'); <br />
+// Produces: WHERE title LIKE 'match'
+</code>
+
<li><strong>Associative array method:</strong>
<code>