Changeset 3104

Show
Ignore:
Timestamp:
05/24/07 10:53:49 (5 days ago)
Author:
demian
Message:

Implementing PHP handling of stored proc resultsets using mysqli_SGL driver

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • vendor/pear/DB/mysqli_SGL.php

    r3102 r3104  
    6262        return parent::simpleQuery($query); 
    6363    } 
     64 
     65 
     66    function multiQuery($query) 
     67    { 
     68        if (!mysqli_multi_query($this->connection, $query)) { 
     69            $this->raiseError(); 
     70        } 
     71        $res = mysqli_store_result($this->connection); 
     72        if (mysqli_more_results($this->connection)) { 
     73            while (mysqli_next_result($this->connection)) { 
     74                //  aggregate results 
     75            } 
     76        } 
     77        $aRes = array(); 
     78 
     79        while ($oRow = mysqli_fetch_object($res)) { 
     80            $aRes[] = $oRow; 
     81        } 
     82        return $aRes; 
     83    } 
    6484} 
    6585?>