summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-01-16 12:08:24 +0100
committerAndrey Andreev <narf@bofh.bg>2012-01-16 12:08:24 +0100
commit5cbecb3865c84967692324f283b0bebd7c8efb38 (patch)
tree38b480e528c918abeac236bb16681246f2852592 /system
parent8ae24c57a1240a5a5e3fbd5755227e5d42b75390 (diff)
Add a comment for CI_DB_sqlite3_result::num_rows()
Diffstat (limited to 'system')
-rw-r--r--system/database/drivers/sqlite3/sqlite3_result.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/database/drivers/sqlite3/sqlite3_result.php b/system/database/drivers/sqlite3/sqlite3_result.php
index 7b1b4502a..c9876fe69 100644
--- a/system/database/drivers/sqlite3/sqlite3_result.php
+++ b/system/database/drivers/sqlite3/sqlite3_result.php
@@ -49,6 +49,9 @@ class CI_DB_sqlite3_result extends CI_DB_result {
*/
public function num_rows()
{
+ /* The SQLite3 driver doesn't have a graceful way to do this,
+ * so we'll have to do it on our own.
+ */
return is_int($this->num_rows)
? $this->num_rows
: $this->num_rows = count($this->result_array());