package com.zendesk.maxwell.schema.columndef; import java.math.BigDecimal; import com.google.code.or.common.util.MySQLConstants; public class DecimalColumnDef extends ColumnDef { public DecimalColumnDef(String name, String type, int pos) { super(name, type, pos); } @Override public boolean matchesMysqlType(int type) { return type == MySQLConstants.TYPE_DECIMAL; } @Override public String toSQL(Object value) { BigDecimal d = (BigDecimal) value; return d.toEngineeringString(); } }