Changeset 1771
- Timestamp:
- 01/21/2008 09:26:54 AM (12 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/drivers/Database_Mysqli.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/drivers/Database_Mysqli.php
r1770 r1771 201 201 { 202 202 $this->result->free_result(); 203 204 // this is kinda useless, but needs to be done to avoid the "Commands out of sync; you 205 // can't run this command now" error. Basically, we get all results after the first one 206 // (the one we actually need) and free them. 207 if ($this->link->more_results()) 208 { 209 do 210 { 211 if ($result = $this->link->store_result()) 212 { 213 $result->free_result(); 214 } 215 } while ($this->link->next_result()); 216 } 203 217 } 204 218 }
