Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id BB9FC9FB1BA for ; Wed, 27 Jun 2007 20:28:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 96764-03 for ; Wed, 27 Jun 2007 20:28:11 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id 02E949FA6AC for ; Wed, 27 Jun 2007 20:28:15 -0300 (ADT) Received: from 222-154-131-31.jetstream.xtra.co.nz ([222.154.131.31] helo=[10.1.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1I3gvj-0001fk-Jw; Thu, 28 Jun 2007 11:28:11 +1200 Message-ID: <4682F285.10601@opencloud.com> Date: Thu, 28 Jun 2007 11:28:05 +1200 From: Oliver Jowett User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Edoardo Panfili CC: pgsql-jdbc@postgresql.org Subject: Re: error: operator does not exist: bigint = character varying References: <4682D2C9.1010406@aspix.it> In-Reply-To: <4682D2C9.1010406@aspix.it> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/106 X-Sequence-Number: 17168 Edoardo Panfili wrote: > org.postgresql.util.PSQLException: ERROR: operator does not exist: > bigint = character varying > ps.setString(1, rilievo.dato[Rilievo.ID]); Use a setter that's appropriate to the type e.g. setLong(), not setString(). -O