#1965 @Identity with sequence ddl generation

This commit is contained in:
rob bygrave
2020-03-05 00:13:08 +13:00
parent 3e14ec6a5a
commit ba01103f48
2 changed files with 3 additions and 1 deletions
@@ -63,6 +63,8 @@ public class DdlIdentity {
StringBuilder sb = new StringBuilder(40);
if (brackets) {
sb.append(" (");
} else {
sb.append(" ");
}
optionFor(sb, startWith, identityMode.getStart());
optionFor(sb, incrementBy, identityMode.getIncrement());
@@ -368,7 +368,7 @@ public class PlatformDdl {
public String createSequence(String sequenceName, DdlIdentity identity) {
StringBuilder sb = new StringBuilder("create sequence ");
sb.append(sequenceName);
identity.sequenceOptions(sequenceStartWith, sequenceIncrementBy, sequenceCache);
sb.append(identity.sequenceOptions(sequenceStartWith, sequenceIncrementBy, sequenceCache));
sb.append(";");
return sb.toString();
}