X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8E563DBA5F for ; Fri, 18 Nov 2005 14:23:07 -0400 (AST) 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 67781-09 for ; Fri, 18 Nov 2005 18:23:06 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 8A351DB600 for ; Fri, 18 Nov 2005 14:23:03 -0400 (AST) Received: (qmail 5591 invoked by uid 1112); 18 Nov 2005 18:25:51 -0000 Date: Fri, 18 Nov 2005 13:25:51 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Tjioe Ai Xin cc: pgsql-jdbc@postgresql.org Subject: Re: Problem when upgrade PostgreSQL 7.3.3 to PostgreSQL 8.0.3 In-Reply-To: <200511180902.56997.xinxincute@gmail.com> Message-ID: References: <200511180902.56997.xinxincute@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[AWL=0.000] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/113 X-Sequence-Number: 14211 On Fri, 18 Nov 2005, Tjioe Ai Xin wrote: > I have web application which is run using PostgreSQL 7.3.3 and JDBC > Driver pg3jdbc3.jar. But when I try to update to PostgreSQL 8.0.3 and > using JDBC Driver postgresql-8.0-314.jdbc3.jar, I got error messages: > 1. Cannot change transaction isolation level in the middle of a transaction. > --> Does changing transaction isolation level in the middle of a > transaction no longer supported? This was never supported, but simply did not report the error in the past. Transaction isolation must be set before the first statement of the transaction is executed. The server must know in advance what type of snapshot it must take when the transaction starts. It cannot go back and time and retake it if the isolation level changes mid-transaction. > 2. ERROR: operator does not exist: bigint / character varying > --> I don't understand this error message because all my query > statements runs well in the shell. > But when I call my query statement, I got the message. I'm guessing you are using PreparedStatement.setString for a numeric value. Do you have a query like "WHERE colname / ? " ? You need to use a different setXXX method that takes a numeric value. Kris Jurka