X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E6923528B7 for ; Fri, 24 Jun 2005 18:18:37 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 36060-02 for ; Fri, 24 Jun 2005 21:18:36 +0000 (GMT) Received: from genomemail.chop.edu (genomemail.chop.edu [159.14.214.193]) by svr1.postgresql.org (Postfix) with ESMTP id 72C6C528AD for ; Fri, 24 Jun 2005 18:18:35 -0300 (ADT) Received: from [192.168.1.10] (dsl092-234-063.phl1.dsl.speakeasy.net [66.92.234.63]) BY genomemail.chop.edu ([159.14.214.193]) WITH ESMTP (4D WebSTAR V Mail (5.3.4)); Fri, 24 Jun 2005 17:18:36 -0400 Message-ID: <42BC78AB.6080808@genome.chop.edu> Date: Fri, 24 Jun 2005 17:18:35 -0400 From: Kevin Murphy User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Statement setNull for Types.CLOB Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.037 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/126 X-Sequence-Number: 13088 On Fri, 18 Feb 2005, Kris Jurka wrote: > On Fri, 18 Feb 2005, Matt Magoffin wrote: >> Hibernate calls setNull() passing >> the Types.CLOB as the SQL type. The Postgres driver is throwing an >> exception, however, saying that type is unknown. > > I've fixed the setNull call to do something, > but again CLOB really maps to the oid datatype in pg, not text. I just encountered the same problem with setObject in postgresql-8.0-311.jdbc3.jar, btw. I don't understand the bit about oid, so I guess I will use Types.VARCHAR unless instructed otherwise. -Kevin Murphy