Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id E842B1337B4A for ; Mon, 27 Sep 2010 12:35:30 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 52648-06 for ; Mon, 27 Sep 2010 15:35:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mail.postgresql.org (Postfix) with ESMTP id 133191337B51 for ; Mon, 27 Sep 2010 12:35:22 -0300 (ADT) Received: from sam.nabble.com ([192.168.236.26]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1P0Fjd-0002VO-7t for pgsql-jdbc@postgresql.org; Mon, 27 Sep 2010 08:35:21 -0700 Date: Mon, 27 Sep 2010 08:35:21 -0700 (PDT) From: stagirus To: pgsql-jdbc@postgresql.org Message-ID: <1285601721239-2855475.post@n5.nabble.com> In-Reply-To: <4CA064B50200002500035F29@gw.wicourts.gov> References: <4CA064B50200002500035F29@gw.wicourts.gov> Subject: Re: [BUGS] Mapping Hibernate boolean to smallint(Postgresql) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.778 tagged_above=-10 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201009/52 X-Sequence-Number: 20922 My developer sent me the following error report. It does not include stack trace. But I can get it shortly. ERROR: column "deleted" is of type smallint but expression is of type boolean It appears that the queries generated by Hibernate contains boolean expressions that are not being accepted as valid values by Postgresql DB. Does anybody have experience with the following Hibernate's query substitutions will work (Dean's suggestion)? true 1, false 0 It seems to be promising but I want to be sure it works before I recommend to my team. They are already burnt with this boolean related issues in Postgresql. Ideally DB Engine/JDBC Drivers should be flexible(smart?) enough to recognize integer values for boolean values. It is unfortunate that RDMBS vendors nor ANSI SQL standardized boolean values. Am I making sense? Thanks. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Re-BUGS-Mapping-Hibernate-boolean-to-smallint-Postgresql-tp2855367p2855475.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.