- Timestamp:
- 10/02/08 18:12:10 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/php/misc/Hermit/src/Hermit/resultset/HermitProcedureResultSet.php
r20417 r20492 4 4 * @author nowelium 5 5 */ 6 class HermitProcedureResultSet implements HermitResultSet , HermitParameterBind{6 class HermitProcedureResultSet implements HermitResultSet { 7 7 protected $procParameter; 8 8 public function __construct(HermitProcedureParameter $procParameter){ … … 10 10 } 11 11 public function execute(HermitStatement $stmt, HermitValueType $type){ 12 if($stmt->columnCount() < 1){ 13 $stmt->closeCursor(); 14 unset($stmt); 15 return null; 16 } 12 17 $type->apply($stmt); 13 18 14 if($stmt->columnCount() < 1){ 15 return null; 16 } 19 // $rows = array(); 20 // while($row = $stmt->fetch()){ 21 // $rows[] = $row; 22 // } 23 // if(!$stmt->nextRowset()){ 24 // return $rows; 25 // } 26 // 27 // $results = array(); 28 // $results[] = $rows; 29 // do { 30 // $rows = array(); 31 // while($row = $stmt->fetch()){ 32 // $rows[] = $row; 33 // } 34 // $results[] = $rows; 35 // } while($stmt->nextRowset()); 36 // 37 // $stmt->closeCursor(); 38 // unset($stmt); 39 // return $results; 17 40 41 // multiresult so always to array[array] 18 42 $results = array(); 19 43 do { 20 $row = $stmt->fetch();21 if(false === $row){22 break;44 $rows = array(); 45 while($row = $stmt->fetch()){ 46 $rows[] = $row; 23 47 } 24 $results[] = $row ;48 $results[] = $rows; 25 49 } while($stmt->nextRowset()); 50 51 $stmt->closeCursor(); 52 unset($stmt); 26 53 return $results; 27 54 } 28 public function bindParameter(PDO $pdo, array $parameter){29 }30 55 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)