PDO custom class for statement
| From: | Ludovic Levesque | Date: | Thu, 04 May 2006 11:24:17 +0000 |
| Subject: | PDO custom class for statement | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-3747@lists.php.net to get a copy of this message | ||
Hi everybody,
can someone on the list explain me why "PDO::ATTR_STATEMENT_CLASS
cannot be used with persistent PDO instances" ?
line 707 of pdo_dbh.c:
if (dbh->is_persistent) {
pdo_raise_impl_error(dbh, NULL, "HY000",
"PDO::ATTR_STATEMENT_CLASS cannot be used with
persistent PDO instances"
TSRMLS_CC);
PDO_HANDLE_DBH_ERR();
RETURN_FALSE;
}
When I test with code commented, nothing fails.
Thanks,
Ludovic