Re: Re: Patch: Use notices in PDO

From: Date: Tue, 20 Oct 2009 12:20:56 +0000
Subject: Re: Re: Patch: Use notices in PDO
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-45846@lists.php.net to get a copy of this message
Hi Christopher, 2009/10/19 Christopher Jones <christopher.jones@oracle.com>: > The new interface combines system generated error messages with user > generated messages. I think you're talking about Oracle. > The original PostgreSQL example I saw seemed to use arbitrary text > messages, similar to Oracle's DBMS_OUTPUT (page 181 of > http://tinyurl.com/UGPOM). Page 191, this document explain how DBMS_OUTPUT raise informations, which can be got with the RFC's method. > The MySQL examples in the RFC are seem to > be similar to Oracle's compilation warnings (page 167 of > http://tinyurl.com/UGPOM). Page 177 there's a "PL/SQL Success With Information Warnings" paragraph. It talks about warning raised *only* by the Oracle system. It is like MySQL, you're true. The problem is that are you really wanted this warning ? I think that yes because it helps to debug, like others warning in MySQL and PostgreSQL. > I think two message types should be handled separately. Why not... But the problem is that execution time will increase because we'll have to exec two queries ! Why not because if we do that, we have to change the PDO::ATTR_LOG_NOTICES param. I don't really agree to that. Why not developp a Oracle function which will returns a compilation of these warnings ? It must be better ! Moreover, theses warnings / notices seens to be equal... Why differents methods to get them ? Regards, Samuel.

« previous php.internals (#45846) next »