Re: PDO PgSQL: _pdo_pgsql_notice
| From: | Christopher Jones | Date: | Wed, 07 Oct 2009 06:19:13 +0000 |
| Subject: | Re: PDO PgSQL: _pdo_pgsql_notice | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45681@lists.php.net to get a copy of this message | ||
Lukas Kahwe Smith wrote:
On 07.10.2009, at 08:09, Matteo Beccati wrote:Is there a common interface that would suit both MySQL & Postgres usage? Chris -- Blog: http://blogs.oracle.com/opal Twitter: http://twitter.com/ghrdChristopher Jones ha scritto:MySQL has similar notices. Like when stuff gets truncated etc. I also think that using the current "error modes" is probably not ideal. Or rather these arent exception worthy, and they should obviously not return false either.Could you use the new PG specific attribute to enable them but make them output/handled by the existing error/exception interface?That's what I originally thought. But there can be multiple notices triggered by a single query and they shouldn't make the query fail (i.e. throwing an exception would be awkward for a successful query).