Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45698 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81964 invoked from network); 7 Oct 2009 20:48:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Oct 2009 20:48:20 -0000 Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 213.123.26.183 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 213.123.26.183 c2beaomr05.btconnect.com Received: from [213.123.26.183] ([213.123.26.183:4862] helo=c2beaomr05.btconnect.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/B3-13083-4AA6CCA4 for ; Wed, 07 Oct 2009 06:17:09 -0400 Received: from [10.0.0.5] (host81-138-11-136.in-addr.btopenworld.com [81.138.11.136]) by c2beaomr05.btconnect.com with ESMTP id DPN64022; Wed, 7 Oct 2009 11:16:50 +0100 (BST) Message-ID: <4ACC6A92.40701@lsces.co.uk> Date: Wed, 07 Oct 2009 11:16:50 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.23) Gecko/20090908 Fedora/1.1.18-1.fc11 pango-text SeaMonkey/1.1.18 MIME-Version: 1.0 To: PHP Internals References: <1254806557.19561.3.camel@samuel-laptop> <4ACBC540.4090308@beccati.com> <1254894205.7418.32.camel@samuel-laptop> <4ACC2B8F.2040302@oracle.com> <4ACC2E8F.8040903@beccati.com> <4ACC2F62.4050601@oracle.com> <4ACC30A3.8030205@beccati.com> <4ACC32E1.6070909@oracle.com> <4ACC3DDE.8020905@beccati.com> <4ACC527A.8090909@beccati.com> In-Reply-To: <4ACC527A.8090909@beccati.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Junkmail-Status: score=10/50, host=c2beaomr05.btconnect.com X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A0B0204.4ACC6AA1.036E,ss=1,fgs=0, ip=0.0.0.0, so=2009-07-20 21:54:04, dmn=5.7.1/2009-08-27, mode=single engine X-Junkmail-IWF: false Subject: Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice From: lester@lsces.co.uk (Lester Caine) ( Having stripped 6 people from the reply list ... ) Matteo Beccati wrote: > 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. Hopefully now we can get back to addressing the areas where PDO is simply not up to the job? I'm sure half of the reason that there has been no real rush to support PDO from some areas is simply because to many of the driver specific elements are missing, and saying that we just need to add them for each driver still seems wrong to me. Currently the best way to handle a specific database is it's own generic driver, and if using PDO, one normally ends up loading the relevant generic one when the holes start to appear? The database engines are getting more and more complex, and while PDO sort of provides a flat playing field for data (one with it's own holes ) it still has some way to go to provide a flatter interface to database extensions such as 'notice' ? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php