summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/mysqli/mysqli_driver.php
diff options
context:
space:
mode:
authorGreg Aker <greg@gregaker.net>2011-08-20 21:23:14 +0200
committerGreg Aker <greg@gregaker.net>2011-08-20 21:23:14 +0200
commit90248ab1f66666f9eccc11c05dcbde25aeba3794 (patch)
tree8665f30bc1dd7c2019ec77f927f87e587b563de2 /system/database/drivers/mysqli/mysqli_driver.php
parent28f21ee67e36a2422c00da13752736dfec075282 (diff)
Fixed a bug (#200) where MySQL queries would be malformed after calling db->count_all() then db->get()
Diffstat (limited to 'system/database/drivers/mysqli/mysqli_driver.php')
-rw-r--r--system/database/drivers/mysqli/mysqli_driver.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/database/drivers/mysqli/mysqli_driver.php b/system/database/drivers/mysqli/mysqli_driver.php
index b1796c9df..ddcaff323 100644
--- a/system/database/drivers/mysqli/mysqli_driver.php
+++ b/system/database/drivers/mysqli/mysqli_driver.php
@@ -386,6 +386,7 @@ class CI_DB_mysqli_driver extends CI_DB {
}
$row = $query->row();
+ $this->_reset_select();
return (int) $row->numrows;
}