pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Michael Allman <msa@allman.ms>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: jdbc xa support
Date: Sat, 23 Jul 2005 19:13:03 +1200
Message-ID: <42E1EDFF.7060206@opencloud.com> (raw)
In-Reply-To: <Pine.OSF.4.61.0507220935150.389171@kosh.hut.fi>
References: <20050719193245.D20902@yvyyl>
	<E3F1D1B7-B41C-40C4-9621-60F96363A032@fastcrypt.com>
	<Pine.OSF.4.61.0507201916300.205200@kosh.hut.fi>
	<20050720211921.V54984@yvyyl>
	<Pine.OSF.4.61.0507212140250.34894@kosh.hut.fi>
	<20050721203342.W75792@yvyyl>
	<Pine.OSF.4.61.0507220935150.389171@kosh.hut.fi>

Heikki Linnakangas wrote:
> On Thu, 21 Jul 2005, Michael Allman wrote:
> 
>> On Thu, 21 Jul 2005, Heikki Linnakangas wrote:
>>
>>> 2. Using prepared statements like "PREPARE TRANSACTION ?" won't work.
>>> You can only use prepared statements for normal SELECT/UPDATE/DELETE
>>> commands.
>>
>> Doesn't the driver support client side prepared statements?
> 
> No, they're server side. I tried that too at first, but it didn't work.

Yeah, it boils down to: you can only put a ? placeholder where there's a
PARAM terminal in the server's SQL grammar, as the driver translates the
placeholders to '$n' strings on Parse and uses Bind to pass the actual
values on each execution. COMMIT PREPARED etc take a Sconst, not a
PARAM, for their argument.

-O



view thread (27+ messages)  latest in thread

Message-ID: <42E1EDFF.7060206@opencloud.com>
Permalink:  ../42E1EDFF.7060206@opencloud.com/
Also on:    postgresql.org/message-id/42E1EDFF.7060206@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, hlinnaka@iki.fi, msa@allman.ms
  Subject: Re: jdbc xa support
  In-Reply-To: <42E1EDFF.7060206@opencloud.com>
  References: <20050719193245.D20902@yvyyl> <E3F1D1B7-B41C-40C4-9621-60F96363A032@fastcrypt.com> <Pine.OSF.4.61.0507201916300.205200@kosh.hut.fi> <20050720211921.V54984@yvyyl> <Pine.OSF.4.61.0507212140250.34894@kosh.hut.fi> <20050721203342.W75792@yvyyl> <Pine.OSF.4.61.0507220935150.389171@kosh.hut.fi> <42E1EDFF.7060206@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