Re: PDO PgSQL: _pdo_pgsql_notice

From: Date: Wed, 07 Oct 2009 08:34:02 +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-45684@lists.php.net to get a copy of this message
Pierre Joye ha scritto: > Having them part of the PHP errors is counter intuitive and add extra > work for little gain. Mysql being the most cleaner way to do it at > this stage as it does not interfer with php code at all. Yes. That's exactly why I added a new method, although driver specific. > Could we make it independent from php's errors (be notices or > warnings)? For example to add a PDO statement method to fetch these > messages after having executed or prepared a query, getMessages for > example. The PDO::exec(), method doesn't return a PDOStatement. With exec being the most common way to execute DDL or DML queries, the ones that are more likely to return a notice or warning. Cheers -- Matteo Beccati

« previous php.internals (#45684) next »