Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45681 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75633 invoked from network); 7 Oct 2009 06:26:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Oct 2009 06:26:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=christopher.jones@oracle.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=christopher.jones@oracle.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain oracle.com from 141.146.126.234 cause and error) X-PHP-List-Original-Sender: christopher.jones@oracle.com X-Host-Fingerprint: 141.146.126.234 acsinet12.oracle.com Received: from [141.146.126.234] ([141.146.126.234:24500] helo=acsinet12.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/23-58030-6033CCA4 for ; Wed, 07 Oct 2009 02:19:50 -0400 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n976Jca1005286 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 7 Oct 2009 06:19:39 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n95MjOgI001273; Wed, 7 Oct 2009 06:19:37 GMT Received: from abhmt005.oracle.com by acsmt355.oracle.com with ESMTP id 20251136451254896355; Tue, 06 Oct 2009 23:19:15 -0700 Received: from [141.144.120.24] (/141.144.120.24) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 06 Oct 2009 23:19:14 -0700 Message-ID: <4ACC32E1.6070909@oracle.com> Date: Tue, 06 Oct 2009 23:19:13 -0700 User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Lukas Kahwe Smith CC: Matteo Beccati , Samuel ROZE , PHP Internals References: <1254806557.19561.3.camel@samuel-laptop> <1254807735.19561.5.camel@samuel-laptop> <4ACAF18B.5080803@beccati.com> <1254846564.876.1.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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: acsmt357.oracle.com [141.146.40.157] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4ACC32F9.003A:SCFMA4539814,ss=1,fgs=0 Subject: Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice From: christopher.jones@oracle.com (Christopher Jones) Lukas Kahwe Smith wrote: > > On 07.10.2009, at 08:09, Matteo Beccati wrote: > >> Christopher Jones ha scritto: >>> >>> 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). > > > 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. Is there a common interface that would suit both MySQL & Postgres usage? Chris -- Blog: http://blogs.oracle.com/opal Twitter: http://twitter.com/ghrd