setNumericScale(other.getNumericScale());
output.writeInt32(12, message.getNumericPrecisionRadix(), false); if(message.hasNumericScale()) output.writeInt32(13, message.getNumericScale(), false); if(message.hasDateTimePrecision()) output.writeInt32(14, message.getDateTimePrecision(), false);
Integer getDecimalDigits(ColumnMetadata value) { switch(value.getDataType()) { case "TINYINT": case "SMALLINT": case "INTEGER": case "BIGINT": case "DECIMAL": case "NUMERIC": return value.hasNumericScale() ? value.getNumericScale() : null; case "REAL": return DECIMAL_DIGITS_REAL; case "FLOAT": return DECIMAL_DIGITS_FLOAT; case "DOUBLE": return DECIMAL_DIGITS_DOUBLE; case "DATE": case "TIME": case "TIMESTAMP": case "INTERVAL": return value.getDateTimePrecision(); default: return null; } }
setNumericScale(other.getNumericScale());
output.writeInt32(12, message.getNumericPrecisionRadix(), false); if(message.hasNumericScale()) output.writeInt32(13, message.getNumericScale(), false); if(message.hasDateTimePrecision()) output.writeInt32(14, message.getDateTimePrecision(), false);
Integer getDecimalDigits(ColumnMetadata value) { switch(value.getDataType()) { case "TINYINT": case "SMALLINT": case "INTEGER": case "BIGINT": case "DECIMAL": case "NUMERIC": return value.hasNumericScale() ? value.getNumericScale() : null; case "REAL": return DECIMAL_DIGITS_REAL; case "FLOAT": return DECIMAL_DIGITS_FLOAT; case "DOUBLE": return DECIMAL_DIGITS_DOUBLE; case "DATE": case "TIME": case "TIMESTAMP": case "INTERVAL": return value.getDateTimePrecision(); default: return null; } }