Skip to content
Permalink
Browse files

0003836: Fix DDL creation of ROWID column for Oracle (3.10)

  • Loading branch information...
mmichalek committed Dec 19, 2018
1 parent 7f7fc57 commit fef19b9731fcebdbccdae5393cf331bfb81c6dbb
Showing with 15 additions and 0 deletions.
  1. +15 −0 symmetric-db/src/main/java/org/jumpmind/db/platform/oracle/OracleDdlBuilder.java
@@ -40,6 +40,7 @@
import org.jumpmind.db.model.ColumnTypes;
import org.jumpmind.db.model.Database;
import org.jumpmind.db.model.IIndex;
import org.jumpmind.db.model.PlatformColumn;
import org.jumpmind.db.model.Table;
import org.jumpmind.db.platform.AbstractDdlBuilder;
import org.jumpmind.db.platform.DatabaseNamesConstants;
@@ -53,6 +54,8 @@
protected static final String PREFIX_TRIGGER = "TRG";

protected static final String PREFIX_SEQUENCE = "SEQ";

protected static final String ROWID_TYPE = "ROWID";

public OracleDdlBuilder() {
super(DatabaseNamesConstants.ORACLE);
@@ -530,5 +533,17 @@ protected void processChange(Database currentModel, Database desiredModel,
printEndOfStatement(ddl);
change.apply(currentModel, delimitedIdentifierModeOn);
}


@Override
protected String getSqlType(Column column) {
PlatformColumn platformColumn = column.findPlatformColumn(databaseName);
if (platformColumn != null && platformColumn.getType() != null
&& platformColumn.getType().equals(ROWID_TYPE)) {
return ROWID_TYPE;
} else {
return super.getSqlType(column);
}
}

}

0 comments on commit fef19b9

Please sign in to comment.
You can’t perform that action at this time.