commit | 448148b0d8ed1459662cfe501197686b8a48b609 | [log] [tgz] |
---|---|---|
author | Greg Aker <greg@gregaker.net> | Sat Aug 20 14:23:14 2011 -0500 |
committer | Phil Sturgeon <email@philsturgeon.co.uk> | Thu Oct 27 13:18:01 2011 +0100 |
tree | d35cf218e8d04384c0553188044e97163f6c6445 | |
parent | 071e2fbcd775528fb69577c49eed909cb3a56300 [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/postgre/postgre_driver.php b/system/database/drivers/postgre/postgre_driver.php index 1403968..5367f97 100644 --- a/system/database/drivers/postgre/postgre_driver.php +++ b/system/database/drivers/postgre/postgre_driver.php
@@ -385,6 +385,7 @@ } $row = $query->row(); + $this->_reset_select(); return (int) $row->numrows; }