@Override
    public String getCastTypeNameForCode(int code) {
        switch (code) {
            case Types.TINYINT:
            case Types.SMALLINT:
            case Types.INTEGER:
            case Types.BIGINT: return "signed";
            case Types.FLOAT:
            case Types.DOUBLE:
            case Types.REAL:
            case Types.DECIMAL: return "decimal";
            case Types.VARCHAR: return "char";
            default: return super.getCastTypeNameForCode(code);
        }
    }
{@code MySQLTemplates} is an SQL dialect for MySQL

<p>tested with MySQL CE 5.1 and 5.5</p>

@author tiwe
querydsl-sql/src/main/java/com/querydsl/sql/MySQLTemplates.java