ここはちょっと見せられない

ぜったいぜったい見せられない

ZendFramework

PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer

2日程悩んだ。ZendFrameworkでPDO使うと、bigint に8bit整数を入れようとして、PHP側でfloatで持っているとエラーが出ると言うお話。http://bugs.php.net/bug.php?id=48924DBに渡す時には無理やり、 $hoge = sprintf("%.0F",$fuga); などして文字列型にしち…

Specified column "..." is not in the row

9/29 の続き。Zend_Db_Table_Abstract で、DBのテーブルを作りながらコードを書くと、テーブル情報がCache されてて、ひどい目に合う。犯人はCacheだったんだよ・・・ 明示的に public function __construct() { parent::__construct(); $this->setMetadataC…