@Override
    public String getSelectClauseNullString(int sqlType) {
        String v = "null";

        switch (sqlType) {
        case Types.BIT:
        case Types.TINYINT:
        case Types.SMALLINT:
        case Types.INTEGER:
        case Types.BIGINT:
        case Types.FLOAT:
        case Types.REAL:
        case Types.DOUBLE:
        case Types.NUMERIC:
        case Types.DECIMAL:
            v = "cast(null as decimal)";
            break;
        case Types.CHAR:
        case Types.VARCHAR:
        case Types.LONGVARCHAR:
            v = "cast(null as varchar(255))";
            break;
        case Types.DATE:
        case Types.TIME:
        case Types.TIMESTAMP:
            v = "cast(null as timestamp)";
            break;
        case Types.BINARY:
        case Types.VARBINARY:
        case Types.LONGVARBINARY:
        case Types.NULL:
        case Types.OTHER:
        case Types.JAVA_OBJECT:
        case Types.DISTINCT:
        case Types.STRUCT:
        case Types.ARRAY:
        case Types.BLOB:
        case Types.CLOB:
        case Types.REF:
        case Types.DATALINK:
        case Types.BOOLEAN:
            break;
        }
        return v;
    }
Get the name of the database type associated with the given
{@code java.sql.Types} typecode.

@param code
           {@link java.sql.Types} typecode
@param length
           the length or precision of the column
@param precision
           the precision of the column
@param scale
           the scale of the column

@return the database type name

@throws HibernateException
querydsl-jpa/src/test/java/com/querydsl/jpa/support/TeradataDialect.java