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 A3CA753E13 for ; Thu, 5 May 2005 06:59:13 -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 26867-05 for ; Thu, 5 May 2005 09:59:09 +0000 (GMT) Received: from mail.jobflash.com (oncallweb2.jobflash.com [64.62.211.41]) by svr1.postgresql.org (Postfix) with ESMTP id 1195453DF9 for ; Thu, 5 May 2005 06:59:08 -0300 (ADT) Received: from [192.168.2.22] (user-2ivfk1a.dialup.mindspring.com [165.247.208.42]) by mail.jobflash.com (Postfix) with ESMTP id 0F013420C5 for ; Thu, 5 May 2005 02:59:07 -0700 (PDT) Message-ID: <4279EE11.10607@jobflash.com> Date: Thu, 05 May 2005 02:57:37 -0700 From: Tom Arthurs User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "[pgsql-jdbc]" Subject: Upgrade to pg and driver version 8.x code compatibilities Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200505/24 X-Sequence-Number: 12855 We've upraged out development and qa servers to postgresql 8. When using our java application, we get errors at various points in the code similar to the following: Unable to create new submission. org.apache.commons.dbcp.DelegatingPreparedStatement@180b22ejava.sql.SQLException: ERROR: column "job_experience" is of type smallint but expression is of type character varying If I downgrade the driver to the 7.4.x version the error goes away and we can run the application. I realize this is probably pointing to bad coding practices, which will be fixed, I believe, as our developers work on the code, but we want to avoid an all out push to get the code all fixed (similar problems exist in a *lot* of places in the code). We'd like to procede with upgrading to 8.x server -- Two questions arise 1. What changed between the driver versions that generate this error? 2. What is the downside of continuing to use the 7.x version of the driver -- or are there better alternatives (patch, new version, etc). I am using build 311 of the driver.