Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22588 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87804 invoked by uid 1010); 27 Mar 2006 02:49:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 87789 invoked from network); 27 Mar 2006 02:49:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Mar 2006 02:49:40 -0000 X-Host-Fingerprint: 219.166.150.11 mx1.es-i.jp Linux 2.4 w/o timestamps Received: from ([219.166.150.11:46390] helo=mx1.es-i.jp) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A0/0F-37235-3C257244 for ; Sun, 26 Mar 2006 21:49:39 -0500 Received: (qmail 9150 invoked by uid 501); 27 Mar 2006 02:49:34 -0000 Received: from yohgaki@ohgaki.net by mx1.es-i.jp by uid 401 with qmail-scanner-1.20 (clamscan: 0.65. spamassassin: 2.60. Clear:RC:1(192.168.100.210):. Processed in 0.014247 secs); 27 Mar 2006 02:49:34 -0000 X-Qmail-Scanner-Mail-From: yohgaki@ohgaki.net via mx1.es-i.jp X-Qmail-Scanner: 1.20 (Clear:RC:1(192.168.100.210):. Processed in 0.014247 secs) Received: from unknown (HELO ?127.0.0.1?) (192.168.100.210) by mx1.es-i.jp with SMTP; 27 Mar 2006 02:49:34 -0000 Message-ID: <44275330.7050508@ohgaki.net> Date: Mon, 27 Mar 2006 11:51:28 +0900 User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 CC: internals@lists.php.net References: <4425040E.60402@ohgaki.net> <44250532.7070509@php.net> In-Reply-To: <44250532.7070509@php.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Subject: Re: pg_execute error From: yohgaki@ohgaki.net (Yasuo Ohgaki) Lukas Smith wrote: > Yasuo Ohgaki wrote: > >> 3) add bool parameter to pg_execute() >> e.g. pg_execute(resource connection, string stmtname, array params, bool ignore_error) > > how would you intent to implement this? > AFAIK there is currently no catalog to find out the prepared statements > in the current sessions (I hear 8.2 will change this). So the only way > to find out is to simply "try it" and cause an error in the session > which could trigger all sorts of error handlers on the database side .. > something I would not expect from calling a php function like this. I hear about that. Current pg_execute raise E_WARNING if plan is not prepared. The error is annoying since programmers has to try and see if it works. Anyway, since there are no other comments, I'll get rid of the error from pg_execute. Since this is the most efficient way. -- Yasuo Ohgaki