JDBC mapping of TINYINT and SMALLINT
Posted by: Karsten Wutzke
Date: July 24, 2010 11:36AM

Hello,

why does the JDBC connector map TINYINT and SMALLINT to Integer instead of java.lang.Byte and java.lang.Short as you'd expect?

This can cause problems because code generators will pick up the MySQL type from the schema and create Byte and Short types, but the JDBC connector will provide an Integer, which can't be assigned to Byte or Short without a downcast.

What's up with that?

Karsten

Options: ReplyQuote


Subject
Written By
Posted
JDBC mapping of TINYINT and SMALLINT
July 24, 2010 11:36AM


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.