summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/database
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-10-24 16:38:48 +0200
committerAndrey Andreev <narf@bofh.bg>2012-10-24 16:38:48 +0200
commit9f808b0a77eac21bc84f9d729817be54b37905a1 (patch)
treefc453f48171ce656b56797d2d9b2f566c69a11c1 /user_guide_src/source/database
parentd98785a1661b46f0a1cb83168347fda4c4c7dde9 (diff)
An alternative to affected_rows() for insert_batch() and update_batch() (ref #126)
Diffstat (limited to 'user_guide_src/source/database')
-rw-r--r--user_guide_src/source/database/query_builder.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/user_guide_src/source/database/query_builder.rst b/user_guide_src/source/database/query_builder.rst
index b86a0c8db..6ca72914f 100644
--- a/user_guide_src/source/database/query_builder.rst
+++ b/user_guide_src/source/database/query_builder.rst
@@ -830,6 +830,10 @@ array of values, the third parameter is the where key.
.. note:: All values are escaped automatically producing safer queries.
+.. note:: ``affected_rows()`` won't give you proper results with this method,
+ due to the very nature of how it works. Instead, ``update_batch()``
+ returns the number of rows affected.
+
$this->db->get_compiled_update()
================================