From: Jeff Hubbach <Jeff.Hubbach@cha.com>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: [BUGS] Mapping Hibernate boolean to smallint(Postgresql)
Date: Fri, 1 Oct 2010 15:30:34 -0700
Message-ID: <7AF25C2B-8ED4-4204-BC31-CE0C9DBB72EC@cha.com> (raw)
You might want to check ANSI SQL 99 and update your rant regarding there being no boolean in ANSI SQL.
Where do you get the impression that boolean is treated as a char? Just because it doesn't handle an implicit cast from a shortint?
You have been given some very good suggestions as to how your application can support the way PostgreSQL and the jdbc driver work. The other option that has been given to you is to patch the jdbc driver code to handle the implicit cast you desire. One of the beauties of open source is that if you want the code to do something it doesn't currently do, you can make that modification yourself.
I humbly recommend you take some of these potential suggestions to your engineers who are actually writing the code. They might understand the complexity or simplicity of each suggestion on a level which you do not.
-- Jeff Hubbach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: Jeff.Hubbach@cha.com
Subject: Re: [BUGS] Mapping Hibernate boolean to smallint(Postgresql)
In-Reply-To: <7AF25C2B-8ED4-4204-BC31-CE0C9DBB72EC@cha.com>
References: <7AF25C2B-8ED4-4204-BC31-CE0C9DBB72EC@cha.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox