rs.getInt() behaves differently than Connector/J #9

WoozyG opened this Issue Sep 14, 2012 · 0 comments


None yet

2 participants

WoozyG commented Sep 14, 2012

if the string value is larger than Integer.MAX_VALUE or smaller than Integer.MIN_VALUE, Drizzle JDBC throws a NumberFormatException. Connector/J returns the appropriate MAX/MIN int value, unless the string value truly isn't a number.

Yes, this is less than ideal, as the caller should know to ask for a long or double, but among other things Hibernate expects all columns to be sized in an integer range, but MySQL reports 4GB in bytes for the size of a LONG_TEXT column defined as UTF8, among other things. This breaks Hibernate's automatic schema update functionality.

@krummas krummas closed this in 6f350aa Oct 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment