Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id DEC711337B51 for ; Mon, 27 Sep 2010 14:24:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 04619-07 for ; Mon, 27 Sep 2010 17:24:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 6B99B1337B53 for ; Mon, 27 Sep 2010 14:24:27 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Mon, 27 Sep 2010 12:24:27 -0500 Message-Id: <4CA08CF60200002500035F61@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Mon, 27 Sep 2010 12:24:22 -0500 From: "Kevin Grittner" To: ,"stagirus" Subject: Re: [BUGS] Mapping Hibernate boolean to smallint(Postgresql) References: <4CA064B50200002500035F29@gw.wicourts.gov> <1285601721239-2855475.post@n5.nabble.com> <4CA0805B0200002500035F43@gw.wicourts.gov> <1285607332343-2855614.post@n5.nabble.com> In-Reply-To: <1285607332343-2855614.post@n5.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201009/57 X-Sequence-Number: 20927 stagirus wrote: > From your comments/observations, are you saying that there could > be some coding issues regarding these conversions between boolean > and integers? I'm saying that while the code is probably behaving as the person who contributed it to PostgreSQL intended, it appears not to comply with the current standard. The PostgreSQL community generally makes a pretty good effort toward conforming to standards. If it's relatively easy to make it conform to the standard, someone will probably just do it. (Heck, it could even be me.) If it's a lot of work, someone who needs the feature may have to take on the burden of the change, either by offering a patch to implement it or paying someone to do so. > Because I have not worked with the internals of Hibernate/JDBC > drivers, I cannot definitively state if Hibernate is calling > setters and getters (setBoolean) using prepared statements or > directly executes INSERT/UPDATE statements. Anything is possible. Hence the request for the stack trace. Most people have a pretty full plate, and aren't eager to volunteer their time to work on something which might not actually help anyone. -Kevin