X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B1C6D5347B for ; Wed, 27 Apr 2005 22:19:57 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 26949-06 for ; Thu, 28 Apr 2005 01:19:52 +0000 (GMT) Received: from houston.familyhealth.com.au (houston.au.fhnetwork.com [203.22.197.21]) by svr1.postgresql.org (Postfix) with ESMTP id BBA8C54238 for ; Wed, 27 Apr 2005 22:19:47 -0300 (ADT) Received: from houston.familyhealth.com.au (localhost [127.0.0.1]) by houston.familyhealth.com.au (Postfix) with ESMTP id 4AF2E24FDD; Thu, 28 Apr 2005 09:19:44 +0800 (WST) Received: from [192.168.0.40] (work-40.internal [192.168.0.40]) by houston.familyhealth.com.au (Postfix) with ESMTP id 2EE6C24FCE; Thu, 28 Apr 2005 09:19:44 +0800 (WST) Message-ID: <42703AD7.8000409@familyhealth.com.au> Date: Thu, 28 Apr 2005 09:22:31 +0800 From: Christopher Kings-Lynne User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Mohr Cc: pgsql-php@postgresql.org Subject: Re: Does php/postgres support placeholder's? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.067 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/29 X-Sequence-Number: 3113 It has special functions for it in 5.1 CVS, but not in release. However, you can just do it yourself using the PREPARE and EXECUTE statements: http://www.postgresql.org/docs/8.0/interactive/sql-prepare.html http://www.postgresql.org/docs/8.0/interactive/sql-execute.html Chris John Mohr wrote: > > Does php/postgres support placeholder's in queries and updates. > Something that looks like "select * from x where key=?" ? I notice that > the call interface doesn't support all of the documented calls, for > example pg_query and pg_send_query, but not pg_query_params (according > to pgsql.c, the postgres php -> postgres interface program).