Skip to content
Permalink
Browse files

0003522: Table creation Error while initial Load into oracle DB

(initial.load.create.first=true) when using Default value SYS_GUID()
  • Loading branch information...
philipmarzullo64 committed Jan 25, 2019
1 parent db2ee4b commit 04b2fb17a73526f47c60af6a31690de314413a8b
Showing with 10 additions and 0 deletions.
  1. +10 −0 symmetric-db/src/main/java/org/jumpmind/db/platform/oracle/OracleDdlBuilder.java
@@ -117,6 +117,16 @@ protected String mapDefaultValue(Object defaultValue, int typeCode) {
}
return newValue;
}

@Override
protected void printDefaultValue(String defaultValue, int typeCode, StringBuilder ddl) {
String defaultValueStr = mapDefaultValue(defaultValue, typeCode);
if(defaultValue != null && defaultValueStr.trim().toUpperCase().startsWith("SYS_GUID")) {
ddl.append(defaultValueStr);
} else {
super.printDefaultValue(defaultValue, typeCode, ddl);
}
}

@Override
protected void createTable(Table table, StringBuilder ddl, boolean temporary, boolean recreate) {

0 comments on commit 04b2fb1

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