From: Oliver Jowett <oliver@opencloud.com>
To: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Inserting into a uuid column
Date: Wed, 04 Mar 2009 11:53:23 +1300
Message-ID: <49ADB4E3.7010505@opencloud.com> (raw)
In-Reply-To: <49ADAB54.2060402@opencloud.com>
References: <gok66o$duf$1@ger.gmane.org>
<Pine.BSO.4.64.0903031610590.4533@leary.csoft.net>
<gok9b9$p4v$1@ger.gmane.org>
<49ADAB54.2060402@opencloud.com>
Oliver Jowett wrote:
> Thomas Kellerer wrote:
>
>> No I'm not using setString() in that example. The Java code would be:
>>
>> Statement stmt = connection.createStatement();
>> stmt.executeUpdate("INSERT INTO my_table (guid_column) " +
>> " VALUES ('a0eebc999c0b4ef8bb6d6bb9bd380a11')");
>>
>> So it's passing a literal and is not using a PreparedStatement
>
> That should work identically to what you're doing via psql then, so
> something strange is going on. Can you put together a testcase showing
> the problem?
Oh, sorry, I misread your email - this one works, so it's behaving as
expected :)
-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, spam_eater@gmx.net
Subject: Re: Inserting into a uuid column
In-Reply-To: <49ADB4E3.7010505@opencloud.com>
References: <gok66o$duf$1@ger.gmane.org> <Pine.BSO.4.64.0903031610590.4533@leary.csoft.net> <gok9b9$p4v$1@ger.gmane.org> <49ADAB54.2060402@opencloud.com> <49ADB4E3.7010505@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