| 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.INTEGER) if y is Boolean & added Boolean to SQL Keywords |
| Date: | 2003-06-19 20:51:53 |
| Message-ID: | 1056055913.13900.129.camel@topanga.toronto.redhat.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc pgsql-patches |
Problem:
- Boolean not on list of SQLKeywords (The JDBC CTS seems to think that
it should be)
- setObject(x,y,Types.INTEGER) will throw exceptions if y is a Boolean.
Fix:
- Added Boolean to Keywords list.
- Added check in setObject() under Types.INTEGER to check if a boolean
is passed. True=1. False=0. Is consistent with the rest of the code.
Cheers,
Kim
| Attachment | Content-Type | Size |
|---|---|---|
| fixbooleans.diff | text/x-patch | 2.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kim Ho | 2003-06-19 20:52:26 | Fix setObject() with java.sql.Types.Date/Time/Timestamp |
| Previous Message | Erik Price | 2003-06-19 20:40:08 | Re: Signed Applet : how ? (was: Connect Socket problem) |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kim Ho | 2003-06-19 20:52:26 | Fix setObject() with java.sql.Types.Date/Time/Timestamp |
| Previous Message | Peter Eisentraut | 2003-06-19 13:51:41 | Re: Thread configure flag |