From: Paul Thomas <paul@tmsl.demon.co.uk>
To: Oliver Jowett <oliver@opencloud.com>
Cc: GGattis@iTeamOne.com
Cc: pgsql-jdbc @ postgresql . org <pgsql-jdbc@postgresql.org>
Subject: Re: JDBC Update question (quoted strings)
Date: Wed, 1 Sep 2004 10:28:22 +0100
Message-ID: <20040901102822.B8527@bacon> (raw)
In-Reply-To: <20040901102750.A8527@bacon>
References: <20040901102750.A8527@bacon>
On 01/09/2004 04:46 Oliver Jowett wrote:
> Gerry Gattis wrote:
>> Hi Oliver,
>>
>> Thanks for the response. David pointed out that I was using the wrong
>> call to create the statement. After I corrected that, the driver works
>> fine. I think that it must be treating strings differently if it thinks
>> that it is talking to a stored procedure. That would make sense.
>>
>> Methinks the bug is me!
>
> Hmm.. but prepareCall should behave the same as prepareStatement for
> simple queries, in theory. It should only behave differently if it sees
> a {call} escape sequence..
>
> Odd.
Could it be anything to do with him using stmt.execute() instead of the
more usual stmt.executeUpdate()?
--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+
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: paul@tmsl.demon.co.uk, oliver@opencloud.com, GGattis@iTeamOne.com
Subject: Re: JDBC Update question (quoted strings)
In-Reply-To: <20040901102822.B8527@bacon>
References: <20040901102750.A8527@bacon> <20040901102822.B8527@bacon>
* 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