Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C230C9FBD38 for ; Fri, 11 May 2007 08:16:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 66962-06 for ; Fri, 11 May 2007 08:16:52 -0300 (ADT) 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 13FA99FBD23 for ; Fri, 11 May 2007 08:16:51 -0300 (ADT) Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id 7BF62D7837 for ; Fri, 11 May 2007 13:16:49 +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 31C7ED782D for ; Fri, 11 May 2007 13:16:49 +0200 (CEST) Received: by feivel (Postfix, from userid 1000) id DE4D2D6CBC; Fri, 11 May 2007 13:16:47 +0200 (CEST) Date: Fri, 11 May 2007 13:16:47 +0200 From: Michael Meskes To: PostgreSQL Interfaces Subject: PQprepare question Message-ID: <20070511111647.GA18711@feivel.credativ.de> Mail-Followup-To: PostgreSQL Interfaces MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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/10 X-Sequence-Number: 6517 According to the docs parameters are referenced as $1, $2, and so. Is there a reason not to use "?" as placeholder? It seems to be quite common to use "?" and of course a simple counting gives the same information. ECPG used to accept "?" notation. Now I started to switch from PQexec to PQexecParams and at the same time add PQprepare. However, I'd like to still be able to accept old sources using "?". The question now is, do I replace the "?"s on the clien side in ecpglib or libpq, or is it possible to add this in the backend for more general use? 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!