Ejemplo n.º 1
0
 public final short getShort(int columnIndex) throws SQLException {
   try {
     Object obj = getObjectSetWasNull(columnIndex);
     if (wasNull) {
       return 0;
     }
     if (obj instanceof IConvertible) {
       return Convert.ToInt16(obj);
     }
     String str = obj.toString();
     return Int16.Parse(str);
   } catch (Throwable th) {
     throw JdbcOdbcUtils.createSQLException(th);
   }
 }