This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
return bddata;
}
case Types.INTEGER: {
case Types.INTEGER:
int idata = rs.getInt(index);
case Types.SMALLINT:
if (rs.wasNull()) {
return null;
} else {
return new Integer(idata);
case Types.SMALLINT: {
short sidata = rs.getShort(index);
return new Short(sidata);
case Types.TINYINT: {
// byte primitive data type is not enough for UNSIGNED TINYINT
try {
short tidata = rs.getShort(index);
return new Short(tidata);
} catch (java.sql.SQLDataException ex) {
long ldata = rs.getLong(index);
return new Long(ldata);
// JDBC/ODBC bridge JDK1.4 brings back -9 for nvarchar columns in
// MS SQL Server tables.