| From: | Kim Ho <kho(at)redhat(dot)com> |
|---|---|
| To: | PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>, pgsql-jdbc-list <pgsql-jdbc(at)postgresql(dot)org> |
| Subject: | Allow setObject(x,y,Types.BIT) if y is a Number & getObject() on bit columns |
| Date: | 2003-06-18 17:09:12 |
| Message-ID: | 1055956152.13900.31.camel@topanga.toronto.redhat.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc pgsql-patches |
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
| Attachment | Content-Type | Size |
|---|---|---|
| fixbits.diff | text/x-patch | 4.0 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kim Ho | 2003-06-18 17:44:39 | Fix getXXX methods when used with CHAR columns or columns with decimals |
| Previous Message | Barry Lind | 2003-06-18 00:57:05 | Re: nit-pick optimization for findColumn() |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kim Ho | 2003-06-18 17:44:39 | Fix getXXX methods when used with CHAR columns or columns with decimals |
| Previous Message | Tom Lane | 2003-06-18 16:46:46 | Re: Runtime.SGML diff ... please expedite! |