commit | 90248ab1f66666f9eccc11c05dcbde25aeba3794 | [log] [tgz] |
---|---|---|
author | Greg Aker <greg@gregaker.net> | Sat Aug 20 14:23:14 2011 -0500 |
committer | Greg Aker <greg@gregaker.net> | Sat Aug 20 14:23:14 2011 -0500 |
tree | 8665f30bc1dd7c2019ec77f927f87e587b563de2 | |
parent | 28f21ee67e36a2422c00da13752736dfec075282 [diff] [blame] |
Fixed a bug (#200) where MySQL queries would be malformed after calling db->count_all() then db->get()
diff --git a/system/database/drivers/sqlsrv/sqlsrv_driver.php b/system/database/drivers/sqlsrv/sqlsrv_driver.php index 1d32792..400fd31 100644 --- a/system/database/drivers/sqlsrv/sqlsrv_driver.php +++ b/system/database/drivers/sqlsrv/sqlsrv_driver.php
@@ -344,6 +344,7 @@ return '0'; $row = $query->row(); + $this->_reset_select(); return $row->numrows; }