db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nils Nordman <n...@nordman.org>
Subject Re: Replacement for BOOL?
Date Sat, 28 Aug 2004 08:01:09 GMT
On Fri, Aug 27, 2004 at 07:15:50PM -0700, Brian Abbott wrote:
> What is the correct replacement to use for BOOL? I'm new to Cloudscape/Derby/Db2 and,
all of my SQL scripts contain BOOL colums. What is data-type recommended for derby to replace
bool with?

I'm not aware of any equivalent type that you can just use as a
substitute. I believe SMALLINT (i.e. java short) is the best fit for
this, but note that you should use the corresponding {get,set}Short
methods instead then.

Nils Nordman <nino@nordman.org>

View raw message