summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-05 15:33:46 +0100
committerAndrey Andreev <narf@bofh.bg>2012-03-05 15:33:46 +0100
commite35250d873e875b3a0bbc53e8a9387e7fd5a82e6 (patch)
tree0a16daeb719969d7e81f3e00d35be94c140c4641
parent99013ed3ed0ea5641a6c6b6afa08a7befb579cb0 (diff)
parentfdb75418c9c4b87e9d7f15f1b59fe8d55739c8f3 (diff)
Merge upstream branch
-rw-r--r--user_guide_src/source/database/results.rst16
1 files changed, 7 insertions, 9 deletions
diff --git a/user_guide_src/source/database/results.rst b/user_guide_src/source/database/results.rst
index de4a337cb..90d2efce3 100644
--- a/user_guide_src/source/database/results.rst
+++ b/user_guide_src/source/database/results.rst
@@ -150,13 +150,12 @@ is the variable that the query result object is assigned to::
echo $query->num_rows();
-.. note:: Oracle (OCI8 driver) doesn't have a way of returning the
- total number of rows in a result set without actually fetching
- all of them. The only way to achieve this is to get all of the
- results first and do a ``count()`` on the resulting array,
- therefore you can't use ``num_rows()`` to increase performance
- when using the OCI8 driver.
-
+..note::
+ Not all database drivers have a native way of getting the total
+ number of rows for a result set. When this is the case, all of
+ the data is prefetched and count() is manually called on the
+ resulting array in order to achieve the same functionality.
+
$query->num_fields()
=====================
@@ -189,5 +188,4 @@ Example::
$row = $query2->row();
echo $row->name;
- $query2->free_result();// The $query2 result object will no longer be available
-
+ $query2->free_result(); // The $query2 result object will no longer be available