From da6aa15a41c2286ca161d036a02f6857ce060e27 Mon Sep 17 00:00:00 2001 From: Nithin Meppurathu Date: Sun, 21 Aug 2011 12:05:17 -0400 Subject: updated changelog and documentation for active record new 3rd argument option #none# to like clause --- user_guide/changelog.html | 3 +++ user_guide/database/active_record.html | 7 +++++++ 2 files changed, 10 insertions(+) (limited to 'user_guide') 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
  • Added a CUBRID driver to the Database Driver. Thanks to the CUBRID team for supplying this patch.
  • Added a PDO driver to the Database Driver.
  • Typecast limit and offset in the Database Driver to integers to avoid possible injection.
  • +
  • Added additional option 'none' for the optional third argument for $this->db->like() in the Database Driver. +
  • Libraries @@ -124,6 +126,7 @@ Change Log
  • Fixed a bug (#60) - Added _file_mime_type() method to the File Uploading Library in order to fix a possible MIME-type injection (also fixes bug #394).
  • Fixed a bug (#537) - Support for all wav type in browser.
  • Fixed a bug (#576) - Using ini_get() function to detect if apc is enabled or not.
  • +
  • Fixed a bug (#160) - Removed unneeded array copy in the file cache driver.
  • Version 2.0.3

    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->db->like('title', 'match', 'both');
    // Produces: WHERE title LIKE '%match%' +If you do not want to use the wildcard (%) you can pass to the optional third argument the option 'none'. + + + $this->db->like('title', 'match', 'none');
    +// Produces: WHERE title LIKE 'match' +
    +
  • Associative array method: -- cgit v1.2.3-24-g4f1b