if (column.getDefaultValue() != null) { 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	{        printIdentifier(getColumnName(column));        print(" ");        print(getSqlType(column));        if (column.getDefaultValue() != null)        {            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);        }        // Sybase does not like NOT NULL and IDENTITY together        if (column.isRequired() && !column.isAutoIncrement())        {            print(" ");            writeColumnNotNullableStmt();        }        if (column.isAutoIncrement())        {            print(" ");            writeColumnAutoIncrementStmt(table, column);        }	}