Changeset 1771

Show
Ignore:
Timestamp:
01/21/2008 09:26:54 AM (12 months ago)
Author:
zombor
Message:

Adding this back in....Needs testing. Fix #324

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/drivers/Database_Mysqli.php

    r1770 r1771  
    201201                { 
    202202                        $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                        } 
    203217                } 
    204218        }