From: Oliver Jowett <oliver@opencloud.com>
To: GGattis@iTeamOne.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC Update question (quoted strings)
Date: Wed, 01 Sep 2004 15:34:28 +1200
Message-ID: <41354344.9010702@opencloud.com> (raw)
In-Reply-To: <1094007567.8130.34.camel@Kernighan.iTeamOne.com>
References: <1094007567.8130.34.camel@Kernighan.iTeamOne.com>
Gerry Gattis wrote:
> I had to make an unexpected adjustment in a query string in order to
> insert a record into a table. I was would like to know if anyone has a
> remedy for this. Here is a short description.
>
> String strInsert = "insert into myTable (lastName) values (?)";
> PreparedStatement stm = conn.prepareCall(strInsert);
> stm.setString(1, "Smith");
> // OK so far
> stm.execute();
> //fails with an error message attribute Smith not found
That sounds like a bug. What driver version are you using?
-O
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, GGattis@iTeamOne.com
Subject: Re: JDBC Update question (quoted strings)
In-Reply-To: <41354344.9010702@opencloud.com>
References: <1094007567.8130.34.camel@Kernighan.iTeamOne.com> <41354344.9010702@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