tinyint(1) maps to Integer
Posted by: Kimo Johnson
Date: January 30, 2005 01:42PM

Hi,

I'm creating tables with BIT types and they are getting mapped in the database to TINYINT(1). This is fine, but when I call getObject() on that column, the returned java object is type Integer and I want a java.lang.Boolean. I've tried playing with the tinyInt1isBit parameter and also providing a map as the second argument of getObject. The CHANGES file indicates that TINYINT(1) -> BIT/Boolean, but I'm not seeing that behavior. Here are the versions of what I'm running:
mysql-connector-java-3.1.6-bin.jar
mysql Ver 12.22 Distrib 4.0.20, for apple-darwin7.3.0 (powerpc)

Any help would be appreciated.

Kimo

Options: ReplyQuote


Subject
Written By
Posted
tinyint(1) maps to Integer
January 30, 2005 01:42PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.