setNumericPrecisionRadix(other.getNumericPrecisionRadix());
output.writeInt32(11, message.getNumericPrecision(), false); if(message.hasNumericPrecisionRadix()) output.writeInt32(12, message.getNumericPrecisionRadix(), false); if(message.hasNumericScale()) output.writeInt32(13, message.getNumericScale(), false);
private Integer getNumPrecRadix(ColumnMetadata value) { switch(value.getDataType()) { case "TINYINT": case "SMALLINT": case "INTEGER": case "BIGINT": case "DECIMAL": case "NUMERIC": case "REAL": case "FLOAT": case "DOUBLE": return value.getNumericPrecisionRadix(); case "INTERVAL": return RADIX_INTERVAL; case "DATE": case "TIME": case "TIMESTAMP": return RADIX_DATETIME; default: return null; } }
setNumericPrecisionRadix(other.getNumericPrecisionRadix());
output.writeInt32(11, message.getNumericPrecision(), false); if(message.hasNumericPrecisionRadix()) output.writeInt32(12, message.getNumericPrecisionRadix(), false); if(message.hasNumericScale()) output.writeInt32(13, message.getNumericScale(), false);
private Integer getNumPrecRadix(ColumnMetadata value) { switch(value.getDataType()) { case "TINYINT": case "SMALLINT": case "INTEGER": case "BIGINT": case "DECIMAL": case "NUMERIC": case "REAL": case "FLOAT": case "DOUBLE": return value.getNumericPrecisionRadix(); case "INTERVAL": return RADIX_INTERVAL; case "DATE": case "TIME": case "TIMESTAMP": return RADIX_DATETIME; default: return null; } }