Skip to content

Commit

Permalink
0001757: java.lang.NumberFormatException w/ MSSQL and BIT column
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jun 11, 2014
1 parent 5b872ae commit 16b20e5
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -387,8 +387,14 @@ protected Object getObjectValue(String value, Column column, BinaryEncoding enco
}
} else if (type == Types.BIGINT) {
objectValue = parseBigInteger(value);
} else if (type == Types.INTEGER || type == Types.SMALLINT || type == Types.BIT) {
} else if (type == Types.INTEGER || type == Types.SMALLINT) {
objectValue = parseInteger(value);
} else if (type == Types.BIT) {
if (StringUtils.isNumeric(value)) {
objectValue = parseInteger(value);
} else {
objectValue = Boolean.parseBoolean(value);
}
} else if (type == Types.NUMERIC || type == Types.DECIMAL || type == Types.FLOAT
|| type == Types.DOUBLE || type == Types.REAL) {
objectValue = parseBigDecimal(value);
Expand Down

0 comments on commit 16b20e5

Please sign in to comment.