Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 1D046632323 for ; Sat, 22 Aug 2009 04:44:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 13038-02 for ; Sat, 22 Aug 2009 07:44:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from n75.bullet.mail.sp1.yahoo.com (n75.bullet.mail.sp1.yahoo.com [98.136.44.51]) by mail.postgresql.org (Postfix) with SMTP id DA2A7632321 for ; Sat, 22 Aug 2009 04:44:42 -0300 (ADT) Received: from [216.252.122.218] by n75.bullet.mail.sp1.yahoo.com with NNFMP; 22 Aug 2009 07:44:40 -0000 Received: from [69.147.65.156] by t3.bullet.sp1.yahoo.com with NNFMP; 22 Aug 2009 07:44:40 -0000 Received: from [127.0.0.1] by omp404.mail.sp1.yahoo.com with NNFMP; 22 Aug 2009 07:44:40 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 426850.5652.bm@omp404.mail.sp1.yahoo.com Received: (qmail 13174 invoked by uid 60001); 22 Aug 2009 07:44:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1250927080; bh=bqqeYgTzd4E1XhGf2QgDHaSsVXY1gr+VzWFz6D+uGx8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=sWiTUhNPLWMDkSpAQQgu51yfvWefqCHtfSNI3JgEXy+blKgsCbeJvwyhX+tEWvOIucdnb6ywJWNnj5GdnKX2kTzzlAkDVwLVgJAU3GYNe1hAIHzn5gY6BRttAVaTqPFALWeUl1pZKFXwOQ+k+U5kcRlMP9s9YPd3VCwSJ8Rho/I= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=2Ruvtc2DXW28pzqQ1KAdd/kwEispxYc2PkLmvI1aybAmisIE2UE46VdL/rAhx3s+lE8VBe9Z7xwWYYAkFWLgSzAuWq0xv630Hm9GqgQa2vO4B24zErnyRnrxVEbvqeliCB9qkX1PDRQK+Ts7HvopF2dRCCIg7yIdRCVYUfk+ZII=; Message-ID: <292862.11477.qm@web43140.mail.sp1.yahoo.com> X-YMail-OSG: .IUuu_8VM1mGgTN.uQhAWb5FhR_K1jhP.bnGb.WF5_InQBEINjC7t0jg2M6DTkM7WE2qd.Bb8L1YsUpwGADaVWBIva5cIpMCqBEpZ1EhQjbGoQhdUcFWJMJmnyFtfkOBXwScyN822Rq84oWbxCPq2i1c1mQHpBncRRBY1rwq2Wm8MiVhh2BhtVU93ifyqgFtyrDiGkWn6k4Apidngwfnh1acTGKLi3v4TWsFqWuHmp..vN7FCZllB.qLcYowIC7koMqqluMBSC1xRaE82DQvy0mXhVJ.7TN8edNsnsV.DQ-- Received: from [64.142.36.76] by web43140.mail.sp1.yahoo.com via HTTP; Sat, 22 Aug 2009 00:44:40 PDT X-Mailer: YahooMailRC/1358.27 YahooMailWebService/0.7.338.2 References: <57606.88414.qm@web43132.mail.sp1.yahoo.com> <4A8F9CDF.6040601@opencloud.com> Date: Sat, 22 Aug 2009 00:44:40 -0700 (PDT) From: Michael Bell Subject: Re: Hibernate and Postgres 8.3/8.4 To: Oliver Jowett Cc: pgsql-jdbc@postgresql.org In-Reply-To: <4A8F9CDF.6040601@opencloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.264 tagged_above=-10 required=5 tests=AWL=0.335, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200908/50 X-Sequence-Number: 19899 Aw jeez, ya nailed it. There was indeed a setString where there should be setShort. Dunno where my head was. Thanks. ----- Original Message ---- From: Oliver Jowett To: Michael Bell Cc: pgsql-jdbc@postgresql.org Sent: Saturday, August 22, 2009 12:23:11 AM Subject: Re: [JDBC] Hibernate and Postgres 8.3/8.4 Michael Bell wrote: > Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: smallint = character varying > Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. > Position: 628 > The queries in question are all "correct" in that they use query.setXXX, where XXX is a "reasonable" thing like String, Integer, Long.....nothing fancy... Well, from the exception, either Hibernate is doing setString() on a parameter that is compared to a smallint, or it's doing setShort() on a parameter that is compared to a varchar type.. so one of the two sides is wrong. -O