pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-jdbc@postgresql.org
To: stagirus <mamasa@stagirus.com>
Subject: Re: [BUGS] Mapping Hibernate boolean to smallint(Postgresql)
Date: Mon, 27 Sep 2010 12:24:22 -0500
Message-ID: <4CA08CF60200002500035F61@gw.wicourts.gov> (raw)
In-Reply-To: <1285607332343-2855614.post@n5.nabble.com>
References: <4CA064B50200002500035F29@gw.wicourts.gov>
	<1285601721239-2855475.post@n5.nabble.com>
	<4CA0805B0200002500035F43@gw.wicourts.gov>
	<1285607332343-2855614.post@n5.nabble.com>

stagirus <mamasa@stagirus.com> 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



view thread (53+ messages)  latest in thread

Message-ID: <4CA08CF60200002500035F61@gw.wicourts.gov>
Permalink:  ../4CA08CF60200002500035F61@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4CA08CF60200002500035F61@gw.wicourts.gov

 · 

reply

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-bugs@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, pgsql-jdbc@postgresql.org, mamasa@stagirus.com
  Subject: Re: [BUGS] Mapping Hibernate boolean to smallint(Postgresql)
  In-Reply-To: <4CA08CF60200002500035F61@gw.wicourts.gov>
  References: <4CA064B50200002500035F29@gw.wicourts.gov> <1285601721239-2855475.post@n5.nabble.com> <4CA0805B0200002500035F43@gw.wicourts.gov> <1285607332343-2855614.post@n5.nabble.com> <4CA08CF60200002500035F61@gw.wicourts.gov>

* 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