Bug: 39914

Impact:

Product:
GemStone/S 64 Bit

Versions:
2.3.1, 2.3, 2.2.5.4, 2.2.5.3, 2.2.5.2, 2.2.5.x, 2.2.5, 2.2.4, 2.2.3, 2.2.2, 2.2.x, 2.2, 2.1.4, 2.1.x, 2.1, 2.0.4, 2.0.2, 2.0

Platform:
All

Fixed In:
2.3.1.6

Index creation fails for ScaledDecimals or Fractions outside SmallInteger range

If an index is created with a last element class of ScaledDecimal or Fraction, and the ScaledDecimal or Fraction contains a denominator outside the SmallInteger range (larger than 1152921504606846975), then index creation will fail with the error:
   ObjErrCorruptObj - The object with object ID 20 is corrupt. Reason: 'FetchSmallInt_ bad value'

Workaround:

Normalize the ScaledDecimal or Fraction to reduce the denominator to less than 1152921504606846975.