Re: Patch: Use notices in PDO
| From: | Samuel ROZE | Date: | Fri, 09 Oct 2009 05:58:37 +0000 |
| Subject: | Re: Patch: Use notices in PDO | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45703@lists.php.net to get a copy of this message | ||
It's a good idea.
- PDO::NOTICES_FETCH -> PDO::NOTICES_ENABLED
- PDO::NOTICES_NONE -> PDO::NOTICES_DISABLED
That's better ?
I see that you are from the Oracle team. Can you explain me how oracle
works to raise notices like PostgreSQL ? Or can you build a proof of
concept to get notices from Oracle ?
Thanks.
Samuel.
Le jeudi 08 octobre 2009 à 15:22 -0700, Christopher Jones a écrit :
>
> Samuel ROZE wrote:
> > Hi,
> >
> > I've make a patch which insert notices concepts to PDO. It create:
> > - PDO::noticeInfo() - to be like errorInfo
> > - PDO::ATTR_LOG_NOTICES, the name of the PDO parameter
> > - PDO::NOTICES_FETCH - fetch notices
>
> I initially took "FETCH" to mean it was related to a query; this
> wouldn't always be the case. What about calling it NOTICES_ENABLE?
>
> Chris
>