Skip to content

Commit

Permalink
0001783: A default value of (sysdate) should not translate to '(sysda…
Browse files Browse the repository at this point in the history
…te)' in the create statement when initial.load.create.first is on
  • Loading branch information
chenson42 committed Jun 30, 2014
1 parent 3693ccf commit aa5c3b3
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -2028,7 +2028,13 @@ protected String mapDefaultValue(Object defaultValue, int typeCode) {
if (defaultValue == null) {
defaultValue = "NULL";
}
return defaultValue.toString();

String newValue = defaultValue.toString().trim();
if (newValue.startsWith("(") && newValue.endsWith(")")) {
newValue = newValue.substring(1, newValue.length()-1);
}

return newValue;
}

/**
Expand Down

0 comments on commit aa5c3b3

Please sign in to comment.