Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id D9F769FBF07 for ; Wed, 27 Jun 2007 18:35:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 19203-02-2 for ; Wed, 27 Jun 2007 18:35:37 -0300 (ADT) X-Greylist: delayed 00:22:56.047674 by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id B41D19FBFD7 for ; Wed, 27 Jun 2007 18:35:42 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from elrond.aspix.it (host216-113-static.56-88-b.business.telecomitalia.it [88.56.113.216]) by svr4.postgresql.org (Postfix) with ESMTP id 74F175AF861 for ; Wed, 27 Jun 2007 21:12:45 +0000 (GMT) Received: from baraddur ([192.168.1.50]:34366 helo=bregalad.local) by elrond.aspix.it with esmtp (Exim 4.63) (envelope-from ) id 1I3ehR-0001zH-IS for pgsql-jdbc@postgresql.org; Wed, 27 Jun 2007 23:05:17 +0200 Message-ID: <4682D2C9.1010406@aspix.it> Date: Wed, 27 Jun 2007 23:12:41 +0200 From: Edoardo Panfili User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; it; rv:1.8.1.4) Gecko/20070604 Thunderbird/2.0.0.4 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: error: operator does not exist: bigint = character varying Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.169 tagged_above=0 required=5 tests=AWL=0.033, BAYES_50=0.001, FORGED_RCVD_HELO=0.135 X-Spam-Level: X-Archive-Number: 200706/105 X-Sequence-Number: 17167 Hi, I am updating from 8.2.4 to 8.3dev the jdbc driver is postgresql-8.3dev-600.jdbc3.jar Now my application raises this exception (all was ok with 8.2): org.postgresql.util.PSQLException: ERROR: operator does not exist: bigint = character varying this is my code fragment ---------------------------------------------------------------------- PreparedStatement ps = connessione.prepareStatement("SELECT strato.idplot, strato.idstrato, strato.nome, strato.copertura, strato.altezza, strato.note FROM plot WHERE idplot=?"); ResultSet risultatoStrati; ps.setString(1, rilievo.dato[Rilievo.ID]); risultatoStrati = istruzioneStrati.executeQuery(); ---------------------------------------------------------------------- The error is in the last istruction, it seems that I am doing somehing not clean with types. the type of idplot is "idplot integer NOT NULL DEFAULT nextval('sequenza_plot'::regclass)" I did a try with ps.setInt(1, Integer.parseInt(rilievo.dato[Rilievo.ID])); but nothing is changed. Whath I am doing wrong? If I exec "SELECT strato.idplot,strato.idstrato,strato.nome,strato.copertura,strato.altezza,strato.note FROM strato WHERE idplot=567" from pgadmin all goes well. thank you Edoardo -- Jabber: edoardopa@talk.google.com tel: 075 9142766