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/HermitParam.php

    r20387 r20492  
    55 */ 
    66class HermitParam extends stdClass { 
     7    public function set($name, $value){ 
     8        $this->$name = $value; 
     9    } 
     10    public function get($name){ 
     11        return $this->$name; 
     12    } 
    713    public function getPropertyNames(){ 
    814        $names = array(); 
     
    1218        return $names; 
    1319    } 
     20    public function __toString(){ 
     21        $tos = array(); 
     22        foreach($this as $name => $value){ 
     23            $tos[] = $name . '=>' . $value; 
     24        } 
     25        return __CLASS__ . ' {' . join(',', $tos) . '}'; 
     26    } 
    1427}