PDO
第 3 版(2009-01-16 11:16:44 · akkun_choi)を表示しています。 最新版に戻る
The pgsql driver is not currently installed
PDOはPDO用のエクステンションがある。
php_pgsql.dllじゃなくて、php_pdo_pgsql.dllをロードしなければならない
>|php|
$pdo = new PDO("mysql:host=localhost; dbname=mindia",
"username", "password");
||<
SQLSTATE[HY000]
このエラーは
SQLSTATE[HY000] General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.
これでOK
#$this->_connection->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);
履歴
タグ
他の人の「PDO」
- 2009-03-09