if ((column.getDefaultValue() != null) || (getPlatformInfo().isDefaultValueUsedForIdentitySpec() && column.isAutoIncrement())) { if (!getPlatformInfo().isDefaultValuesForLongTypesSupported() && ((column.getTypeCode() == Types.LONGVARBINARY) || (column.getTypeCode() == Types.LONGVARCHAR))) { throw new DynaSqlException("The platform does not support default values for LONGVARCHAR or LONGVARBINARY columns"); } print(" DEFAULT "); writeColumnDefaultValue(table, column); }
writeColumnDefaultValueStmt(table, column);
    protected void writeColumn(Table table, Column column) throws IOException    {        //see comments in columnsDiffer about null/"" defaults        printIdentifier(getColumnName(column));        print(" ");        print(getSqlType(column));        if ((column.getDefaultValue() != null) ||            (getPlatformInfo().isDefaultValueUsedForIdentitySpec() && column.isAutoIncrement()))        {            if (!getPlatformInfo().isDefaultValuesForLongTypesSupported() &&                 ((column.getTypeCode() == Types.LONGVARBINARY) || (column.getTypeCode() == Types.LONGVARCHAR)))            {                throw new DynaSqlException("The platform does not support default values for LONGVARCHAR or LONGVARBINARY columns");            }            print(" DEFAULT ");            writeColumnDefaultValue(table, column);        }        if (column.isRequired())        {            print(" ");            writeColumnNotNullableStmt();        }        else if (getPlatformInfo().isNullAsDefaultValueRequired() &&                 getPlatformInfo().hasNullDefault(column.getTypeCode()))        {            print(" ");            writeColumnNullableStmt();        }        if (column.isAutoIncrement() && !getPlatformInfo().isDefaultValueUsedForIdentitySpec())        {            if (!getPlatformInfo().isNonPKIdentityColumnsSupported() && !column.isPrimaryKey())            {                throw new DynaSqlException("Column "+column.getName()+" in table "+table.getName()+" is auto-incrementing but not a primary key column, which is not supported by the platform");            }            print(" ");            writeColumnAutoIncrementStmt(table, column);        }    }