summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-12-11 15:30:13 +0100
committerAndrey Andreev <narf@devilix.net>2014-12-11 15:30:13 +0100
commit435e0c280b3e5030a367e19b1ae8448d5114ef78 (patch)
tree83c572b6d2254ec229fce7ae8b14dfe0da43b25b
parent4a587f5bf3d7c26112e0cf8f8d54299784ce60d0 (diff)
Add method chaining support ot CI_DB_query_builder::reset_query()
-rw-r--r--system/database/DB_query_builder.php3
-rw-r--r--user_guide_src/source/changelog.rst2
2 files changed, 3 insertions, 2 deletions
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php
index fdea51bdd..0170281d7 100644
--- a/system/database/DB_query_builder.php
+++ b/system/database/DB_query_builder.php
@@ -2650,12 +2650,13 @@ abstract class CI_DB_query_builder extends CI_DB_driver {
*
* Publicly-visible method to reset the QB values.
*
- * @return void
+ * @return CI_DB_query_builder
*/
public function reset_query()
{
$this->_reset_select();
$this->_reset_write();
+ return $this;
}
// --------------------------------------------------------------------
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index dc47fd347..698fbd28c 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -188,7 +188,7 @@ Release Date: Not Released
- Changed ``offset()`` to ignore empty values instead of always casting to integer.
- Methods ``insert_batch()`` and ``update_batch()`` now return an integer representing the number of rows affected by them.
- Methods ``where()``, ``or_where()``, ``having()`` and ``or_having()`` now convert trailing ``=`` and ``<>``, ``!=`` SQL operators to ``IS NULL`` and ``IS NOT NULL`` respectively when the supplied comparison value is ``NULL``.
- - Added support for method chaining in query cache methods ``start_cache()``, ``stop_cache()``, ``flush_cache()``.
+ - Added method chaining support to ``reset_query()``, ``start_cache()``, ``stop_cache()`` and ``flush_cache()``.
- :doc:`Database Results <database/results>` changes include: