pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: patch for passing the cts
Date: Wed, 15 Jun 2005 13:58:43 +1200
Message-ID: <42AF8B53.7080201@opencloud.com> (raw)
In-Reply-To: <EB3B2C5E-9B58-44F8-8FD8-A23407F9EEA9@fastcrypt.com>
References: <2BC23AE7-6381-41BA-AE89-CC81D1C932A7@fastcrypt.com>
	<42AF6682.6000405@opencloud.com>
	<EB3B2C5E-9B58-44F8-8FD8-A23407F9EEA9@fastcrypt.com>

Dave Cramer wrote:
> Oliver,
> 
> So if we defer parsing, this will require changing the strategy to 
> create the parameters as they are set, or registered.
> 
> I would suggest using an ArrayList of Parameters, and grow this as 
> required, then parse when it is executed.
> 
> Do you have any suggestions ?

I'd go with storing a local array of parameters on the statement when
you're handling a {call}, and create the final query and assign
parameters just before execution.

You'll probably need to expose some parameter factory methods or
something similar on QueryExecutor since different implementations want
to store parameters differently.

-O



view thread (7+ messages)  latest in thread

Message-ID: <42AF8B53.7080201@opencloud.com>
Permalink:  ../42AF8B53.7080201@opencloud.com/
Also on:    postgresql.org/message-id/42AF8B53.7080201@opencloud.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, pg@fastcrypt.com
  Subject: Re: patch for passing the cts
  In-Reply-To: <42AF8B53.7080201@opencloud.com>
  References: <2BC23AE7-6381-41BA-AE89-CC81D1C932A7@fastcrypt.com> <42AF6682.6000405@opencloud.com> <EB3B2C5E-9B58-44F8-8FD8-A23407F9EEA9@fastcrypt.com> <42AF8B53.7080201@opencloud.com>

* 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