Allow setObject(x,y,Types.INTEGER) if y is Boolean & added Boolean to SQL Keywords

Started by Kim Hoabout 23 years ago2 messagespatches
Jump to latest
#1Kim Ho
kho@redhat.com

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

Attachments:

fixbooleans.difftext/x-patch; charset=UTF-8; name=fixbooleans.diffDownload+7-7
#2Dave Cramer
pg@fastcrypt.com
In reply to: Kim Ho (#1)
Re: Allow setObject(x,y,Types.INTEGER) if y is Boolean &

Patch applied,

thanks,

dave
On Thu, 2003-06-19 at 16:51, Kim Ho wrote:

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

______________________________________________________________________

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

--
Dave Cramer <Dave@micro-automation.net>