case StoredFormatIds.DECIMAL_TYPE_ID:
if (defType == StoredFormatIds.DECIMAL_TYPE_ID) {
// only valid if scale and precision are within
// those of the column. Note that scale here should
// exclude any trailing 0's after the decimal
DataTypeDescriptor defDesc = defaultNode.getTypeServices();
int len = defaultText.length();
int precision = defDesc.getPrecision();
int scale = defDesc.getScale();
for (int i = 1; i <= scale; scale--, precision--) {
if (defaultText.charAt(len - i) != '0')
break;
}
return ((scale <= columnDesc.getScale()) &&