summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2011-09-14 18:03:27 +0200
committerTimothy Warren <tim@timshomepage.net>2011-09-14 18:03:27 +0200
commita6c65337005ac9f8ca8882cdc25341ee45c852df (patch)
tree62874ca18ba1721613af4d38fc2242b43f95428e /system/database
parent9d9fe16060a3db6293df93eadfae965d790022c2 (diff)
Marked ->db->affected_rows() function as unavailable
Diffstat (limited to 'system/database')
-rw-r--r--system/database/drivers/pdo/pdo_driver.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/database/drivers/pdo/pdo_driver.php b/system/database/drivers/pdo/pdo_driver.php
index 829810f8e..5299f1a13 100644
--- a/system/database/drivers/pdo/pdo_driver.php
+++ b/system/database/drivers/pdo/pdo_driver.php
@@ -306,7 +306,11 @@ class CI_DB_pdo_driver extends CI_DB {
*/
function affected_rows()
{
- return @pdo_num_rows($this->conn_id);
+ if ($this->db->db_debug)
+ {
+ return $this->db->display_error('db_unsuported_feature');
+ }
+ return FALSE;
}
// --------------------------------------------------------------------