Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 10C2F9FC1A2; Fri, 11 May 2007 10:48:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 33741-05; Fri, 11 May 2007 10:48:17 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from gauss.credativ.com (ipx11302.ipxserver.de [212.112.227.254]) by postgresql.org (Postfix) with ESMTP id 484319FC0BD; Fri, 11 May 2007 10:48:23 -0300 (ADT) Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id 0ED08D7675; Fri, 11 May 2007 15:48:21 +0200 (CEST) Received: from feivel (unknown [87.139.82.80]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gauss.credativ.com (Postfix) with ESMTP id 4DA6CD7646; Fri, 11 May 2007 15:48:19 +0200 (CEST) Received: by feivel (Postfix, from userid 1000) id C887CD6CAB; Fri, 11 May 2007 15:48:17 +0200 (CEST) Date: Fri, 11 May 2007 15:48:17 +0200 From: Michael Meskes To: Tom Lane Cc: Michael Meskes , PostgreSQL Interfaces Subject: Re: PQprepare question Message-ID: <20070511134817.GA9188@feivel.credativ.de> Mail-Followup-To: Tom Lane , Michael Meskes , PostgreSQL Interfaces References: <20070511111647.GA18711@feivel.credativ.de> <17526.1178888881@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17526.1178888881@sss.pgh.pa.us> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/16 X-Sequence-Number: 6523 On Fri, May 11, 2007 at 09:08:01AM -0400, Tom Lane wrote: > Michael Meskes writes: > > According to the docs parameters are referenced as $1, $2, and so. Is > > there a reason not to use "?" as placeholder? > > It's an operator name. Ah, didn't notice. But that means that ecpg should not accept "?" as placeholder either as this is prone to give errors depending on the usage right? I'm not sure how often this is used with external strings that are prepared. The internal stuff could easily be changed. Michael -- Michael Meskes Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!