Allow setObject(x,y,Types.INTEGER) if y is Boolean & added Boolean to SQL Keywords - Mailing list pgsql-patches

From Kim Ho
Subject Allow setObject(x,y,Types.INTEGER) if y is Boolean & added Boolean to SQL Keywords
Date
Msg-id 1056055913.13900.129.camel@topanga.toronto.redhat.com
Whole thread Raw
Responses Re: [JDBC] Allow setObject(x,y,Types.INTEGER) if y is Boolean &  (Dave Cramer <Dave@micro-automation.net>)
List 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

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Thread configure flag
Next
From: Kim Ho
Date:
Subject: Fix setObject() with java.sql.Types.Date/Time/Timestamp