Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45683 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85265 invoked from network); 7 Oct 2009 07:38:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Oct 2009 07:38:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:53387] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A7/13-58030-2023CCA4 for ; Wed, 07 Oct 2009 02:15:30 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 47229414400B; Wed, 7 Oct 2009 06:15:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ob-DaMPzb78i; Wed, 7 Oct 2009 08:15:58 +0200 (CEST) Received: from [192.168.0.151] (217-162-131-234.dclient.hispeed.ch [217.162.131.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id C871C4144009; Wed, 7 Oct 2009 08:15:57 +0200 (CEST) Cc: Christopher Jones , Samuel ROZE , PHP Internals Message-ID: To: Matteo Beccati In-Reply-To: <4ACC30A3.8030205@beccati.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Wed, 7 Oct 2009 08:15:25 +0200 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> X-Mailer: Apple Mail (2.936) Subject: Re: [PHP-DEV] PDO PgSQL: _pdo_pgsql_notice From: mls@pooteeweet.org (Lukas Kahwe Smith) 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. regards, Lukas Kahwe Smith mls@pooteeweet.org