public function execute(HermitStatement $stmt, HermitValueType $type) { $type->apply($stmt); if ($row = $stmt->fetch()) { $stmt->closeCursor(); return $row; } return null; }
public function execute(HermitStatement $stmt, HermitValueType $type) { $type->apply($stmt); $results = array(); while ($row = $stmt->fetch()) { $results[] = $row; } return $results; }
public function execute(HermitResultSet $stmt, HermitValueType $type) { $type->apply($stmt); return new HermitIteratorMultiResultSet($stmt); }