Re: Inserting into a uuid column - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Inserting into a uuid column
Date
Msg-id 49ADB4E3.7010505@opencloud.com
Whole thread Raw
In response to Re: Inserting into a uuid column  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Inserting into a uuid column
Next
From: Thomas Kellerer
Date:
Subject: Re: Inserting into a uuid column