pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Glenn Holmer <gholmer@weycogroup.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: smallint vs. boolean (was invalid string enlargement
Date: Wed, 13 Apr 2005 11:02:56 -0500
Message-ID: <1113408176.9626.4.camel@shadow.weycogroup.com> (raw)
In-Reply-To: <425C4733.7060107@opencloud.com>
References: <42389DFC.5090408@weycogroup.com>
	<4238A223.4030003@opencloud.com>
	<4239B075.7020305@weycogroup.com>
	<4239EA95.4020101@opencloud.com>
	<1113325530.26370.50.camel@shadow.weycogroup.com>
	<425C4733.7060107@opencloud.com>

On Wed, 2005-04-13 at 10:09 +1200, Oliver Jowett wrote:

> Change the column type so it is a boolean, change the hibernate mapping
> so it calls setShort(), or create the implicit cast as I suggested.

I got it to work with some PL/pgSQL functions, implicit casts, and
overloading the = operator (smallint, boolean).  I'll strongly recommend
to the vendor that they rewrite the Postgres DDL for their product to
use booleans for boolean fields, but in the mean time are there any side
effects I should worry about?

-- 
____________________________________________________________
Glenn Holmer                          gholmer@weycogroup.com
Software Engineer                        phone: 414-908-1809
Weyco Group, Inc.                          fax: 414-908-1601





view thread (3+ messages)

Message-ID: <1113408176.9626.4.camel@shadow.weycogroup.com>
Permalink:  ../1113408176.9626.4.camel@shadow.weycogroup.com/
Also on:    postgresql.org/message-id/1113408176.9626.4.camel@shadow.weycogroup.com

 · 

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-jdbc@postgresql.org
  Cc: gholmer@weycogroup.com
  Subject: Re: smallint vs. boolean (was invalid string enlargement
  In-Reply-To: <1113408176.9626.4.camel@shadow.weycogroup.com>
  References: <42389DFC.5090408@weycogroup.com> <4238A223.4030003@opencloud.com> <4239B075.7020305@weycogroup.com> <4239EA95.4020101@opencloud.com> <1113325530.26370.50.camel@shadow.weycogroup.com> <425C4733.7060107@opencloud.com> <1113408176.9626.4.camel@shadow.weycogroup.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