Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
Deviation from standard, Embedded/Client difference
Description
stm.executeUpdate("create table t(i smallint)");
stm.executeUpdate("insert into t values 1,2,3,4");
ResultSet rs = stm.executeQuery("select i from t");
rs.next();
try {
rs.updateInt(1, 100000);
} catch (SQLException e) {
// client: 22015 vs embedded 22003
}
According to the standard, 22015 should be used for INTERVALs ("interval field overflow"). 22003 seems more correct, the standard uses that for "numeric value out of range".
Attachments
Attachments
Issue Links
- is related to
-
DERBY-5536 Client's ResultSet#getLong does not range check when converting from a DECIMAL column
- Closed
-
DERBY-5546 ResultSet#updateBigDecimal on a REAL column does not do underflow checking
- Closed
- relates to
-
DERBY-5534 ResultSet#updateFloat, #updateDouble do not check for NaN and other conditions on client
- Open