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 BD52E8B9F20 for ; Fri, 18 Feb 2005 17:48:02 +0000 (GMT) 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 86746-06 for ; Fri, 18 Feb 2005 17:47:56 +0000 (GMT) Received: from pop-a065d10.pas.sa.earthlink.net (pop-a065d10.pas.sa.earthlink.net [207.217.121.251]) by svr1.postgresql.org (Postfix) with ESMTP id 62E3A8B9E20 for ; Fri, 18 Feb 2005 17:47:56 +0000 (GMT) Received: from h-67-101-212-101.snfccasy.dynamic.covad.net ([67.101.212.101] helo=x1000.msqr.us) by pop-a065d10.pas.sa.earthlink.net with esmtp (Exim 3.33 #1) id 1D2CEN-0007GZ-00 for pgsql-jdbc@postgresql.org; Fri, 18 Feb 2005 09:47:55 -0800 Received: from x1000.msqr.us (x1000.msqr.us [127.0.0.1]) by x1000.msqr.us (8.12.11/8.12.11) with ESMTP id j1IHfHWp032628 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 18 Feb 2005 09:41:18 -0800 Received: (from apache@localhost) by x1000.msqr.us (8.12.11/8.12.11/Submit) id j1IHfHIb032626; Fri, 18 Feb 2005 09:41:17 -0800 X-Authentication-Warning: x1000.msqr.us: apache set sender to postgresql.org@msqr.us using -f Received: from 192.168.1.1 (SquirrelMail authenticated user matt); by msqr.us with HTTP; Fri, 18 Feb 2005 09:41:17 -0800 (PST) Message-ID: <49924.192.168.1.1.1108748477.squirrel@192.168.1.1> Date: Fri, 18 Feb 2005 09:41:17 -0800 (PST) Subject: Statement setNull for Types.CLOB From: "Matt Magoffin" To: pgsql-jdbc@postgresql.org User-Agent: SquirrelMail/1.4.3a-0.e3.1 X-Mailer: SquirrelMail/1.4.3a-0.e3.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200502/124 X-Sequence-Number: 12304 Hello, I'm using PostgreSQL 8 and the 310 build of the 8.0 JDBC3 driver with Hibernate. For 'text' columns in my database, I had mapped them to the Hibernate "text" type. When attempting to set the value of a text column to 'null' via a PreparedStatement 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 can easily change the Hibernate mapping to "string", which would change the SQL type passed to setNull() to Types.VARCHAR, but I was wondering if Types.CLOB should be a supported value in the setNull() JDBC method? I realize it might not be correct to think of the PostgreSQL text type as a CLOB, so I just wanted some insight on this issue if possible. Thanks,