pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@usa.net>
To: pgsql-hackers@hub.org
Subject: Re: [HACKERS] PREPARE
Date: Wed, 18 Nov 1998 08:47:43 +0100
Message-ID: <19981118084743.A869@usa.net> (raw)
In-Reply-To: <Pine.LNX.3.96.981117183349.3444G-100000@maidast.retep.org.uk>
References: <19981117101824.C2181@usa.net>
	<Pine.LNX.3.96.981117183349.3444G-100000@maidast.retep.org.uk>

On Tue, Nov 17, 1998 at 06:40:01PM +0000, Peter T Mount wrote:
> it has each required parameter represented by a ?
> 
> insert into mytable (field1,field2,field3) values (?,?,?);
> 
> Now the current postgresql jdbc implementation stores this string, and has
> a Vector (Java for a dynamic array) that has each value stored in it as
> the client application sets them. When the client calls the
> executeUpdate() or executeQuery() methods, we just replace the ?'s with
> the values in sequence, and pass the query to the backend as normal.

That's exactly what I wanted to use for ecpg. But I guess I postpone it just
a little more. :-)

Michael
-- 
Dr. Michael Meskes, Manager of the Western Branch Office, Datenrevision GmbH
work: Cuxhavener Str. 36, D-21149 Hamburg
home: Th.-Heuss-Str. 61,  D-41812 Erkelenz, Michael.Meskes@usa.net
Go SF49ers! Go Rhein Fire! Use Debian GNU/Linux!





view thread (18+ messages)  latest in thread

Message-ID: <19981118084743.A869@usa.net>
Permalink:  ../19981118084743.A869@usa.net/
Also on:    postgresql.org/message-id/19981118084743.A869@usa.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: meskes@usa.net, pgsql-hackers@hub.org
  Subject: Re: [HACKERS] PREPARE
  In-Reply-To: <19981118084743.A869@usa.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox