summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/odbc/odbc_driver.php
diff options
context:
space:
mode:
authorGreg Aker <greg@gregaker.net>2011-08-20 21:23:14 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-10-27 14:18:01 +0200
commit448148b0d8ed1459662cfe501197686b8a48b609 (patch)
treed35cf218e8d04384c0553188044e97163f6c6445 /system/database/drivers/odbc/odbc_driver.php
parent071e2fbcd775528fb69577c49eed909cb3a56300 (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/odbc/odbc_driver.php')
-rw-r--r--system/database/drivers/odbc/odbc_driver.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/database/drivers/odbc/odbc_driver.php b/system/database/drivers/odbc/odbc_driver.php
index 6e4ba896f..bcd7937d9 100644
--- a/system/database/drivers/odbc/odbc_driver.php
+++ b/system/database/drivers/odbc/odbc_driver.php
@@ -339,6 +339,7 @@ class CI_DB_odbc_driver extends CI_DB {
}
$row = $query->row();
+ $this->_reset_select();
return (int) $row->numrows;
}