Show
Ignore:
Timestamp:
10/02/08 18:12:10 (3 months ago)
Author:
nowelium
Message:

mysql の procedure サポートは終わり。
General error: 2014 Cannot execute queries while other unbuffered queries are active. とかは、PDOのPDO::MYSQL_ATTR_USE_BUFFERED_QUERY をいくら設定してもダメなので、少し逃げ。一端切断すればなんとかなるけど、Datasource設定とかは管理外なので、やらない。
multi rows は 2次元配列で。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/php/misc/Hermit/src/Hermit/resultset/HermitDefaultResultSet.php

    r20417 r20492  
    77    public function execute(HermitStatement $stmt, HermitValueType $type){ 
    88        $type->apply($stmt); 
    9         return $stmt->fetch(); 
     9        if($row = $stmt->fetch()){ 
     10            $stmt->closeCursor(); 
     11            return $row; 
     12        } 
     13        return null; 
    1014    } 
    1115}