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 CA0DF56402 for ; Thu, 17 Mar 2005 20:37:55 +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 64994-01 for ; Thu, 17 Mar 2005 20:37:47 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id DB33B52A68 for ; Thu, 17 Mar 2005 20:37:46 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1DC1kX-0003TQ-00; Fri, 18 Mar 2005 09:37:45 +1300 Message-ID: <4239EA95.4020101@opencloud.com> Date: Fri, 18 Mar 2005 09:37:41 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Glenn Holmer Cc: pgsql-jdbc@postgresql.org Subject: Re: invalid string enlargement request References: <42389DFC.5090408@weycogroup.com> <4238A223.4030003@opencloud.com> <4239B075.7020305@weycogroup.com> In-Reply-To: <4239B075.7020305@weycogroup.com> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/166 X-Sequence-Number: 12558 Glenn Holmer wrote: > We can't upgrade the driver because we get this: > > 2005-03-17 10:10:22,961 WARN > net.sf.hibernate.util.JDBCExceptionReporter - Meth > od: logExceptions - Line: 38 Message: SQL Error: 0, SQLState: 42883 > 2005-03-17 10:10:22,962 ERROR > net.sf.hibernate.util.JDBCExceptionReporter - Meth > od: logExceptions - Line: 46 Message: ERROR: operator does not exist: > smallint = boolean Without more details I'd have to say this is a hibernate or schema mapping bug -- it looks like it is using setBoolean() where you should be using setShort() (or vice versa). This only shows up in newer drivers because they more tightly bind types to parameters (due to using the V3 extended query protocol to pass parameters to the server) This behaviour is unlikely to change, so you might want to look at tracking down the cause. As a last resort, you might be able to create implicit casts between smallint<->boolean. > Here is more of the log with pg74.213.jdbc3.jar: > > 2005-03-16 14:30:43,239 WARN > net.sf.hibernate.util.JDBCExceptionReporter - Meth > od: logExceptions - Line: 38 Message: SQL Error: 0, SQLState: 08S01 > 2005-03-16 14:30:44,273 ERROR > net.sf.hibernate.util.JDBCExceptionReporter - Meth > od: logExceptions - Line: 46 Message: The backend has broken the > connection. Possibly the action you have att > empted has caused it to close. What is in the server logs around this point? This might be a backend crash, or might just be the protocol stream getting out of sync again. > The other possible culprit is that one of our developers just started > using the Windows version of pgAdmin III, is that known to cause any > problems? Not that I know of. To diagnose this further against the old driver I am going to need either a testcase, the query code, or a tcpdump of the offending connection. -O