From: | Dave Cramer <Dave(at)micro-automation(dot)net> |
---|---|
To: | "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Allow setObject(x,y,Types.BIT) if y is a Number & |
Date: | 2003-06-30 21:09:46 |
Message-ID: | 1057007386.3272.95.camel@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc pgsql-patches |
Patch applied,
thanks,
Dave
On Wed, 2003-06-18 at 13:09, Kim Ho wrote:
> Problem:
> - setObject(x,y,Types.BIT) throws an exception if y is a Number
> - getObject() on a bit column will return null instead of True or False
> Boolean objects
>
> Fix:
> - Added check in setObject() to check to that the Number has value==1.
> If so, set to True. False otherwise. This seems to be consistent with
> the rest of the code.
> - Added BIT to JDBC datatype list
>
>
> Cheers,
>
> Kim
>
> ______________________________________________________________________
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
--
Dave Cramer <Dave(at)micro-automation(dot)net>
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2003-06-30 21:11:04 | Re: Allow setObject(x,y,Types.INTEGER) if y is Boolean & |
Previous Message | Dave Cramer | 2003-06-30 21:09:29 | Re: Fix getXXX methods when used with CHAR columns or |
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2003-06-30 21:11:04 | Re: Allow setObject(x,y,Types.INTEGER) if y is Boolean & |
Previous Message | Dave Cramer | 2003-06-30 21:09:29 | Re: Fix getXXX methods when used with CHAR columns or |