case java.sql.Types.BIGINT:
case java.sql.Types.INTEGER:
case java.sql.Types.SMALLINT:
case java.sql.Types.TINYINT:
int intValue = rs.getInt(i);
if (!rs.wasNull()) {
group.add(columnName, intValue);
}
break;
should use getLong
case java.sql.Types.BIGINT:
long longValue = rs.getLong(i);
if (!rs.wasNull()) {
group.add(columnName, longValue);
}
break;
case java.sql.Types.INTEGER:
case java.sql.Types.SMALLINT:
case java.sql.Types.TINYINT:
int intValue = rs.getInt(i);
if (!rs.wasNull()) {
group.add(columnName, intValue);
}
break;
should use getLong