Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 37EE5635072 for ; Tue, 3 Mar 2009 18:54:13 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 86280-01-4 for ; Tue, 3 Mar 2009 18:54:09 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id 3D57C635D72 for ; Tue, 3 Mar 2009 18:53:30 -0400 (AST) Received: from 219-89-241-75.adsl.xtra.co.nz ([219.89.241.75] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1LedUK-000153-Qm; Wed, 04 Mar 2009 11:53:24 +1300 Message-ID: <49ADB4E3.7010505@opencloud.com> Date: Wed, 04 Mar 2009 11:53:23 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Thomas Kellerer CC: pgsql-jdbc@postgresql.org Subject: Re: Inserting into a uuid column References: <49ADAB54.2060402@opencloud.com> In-Reply-To: <49ADAB54.2060402@opencloud.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/14 X-Sequence-Number: 19344 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