Skip to content

Commit

Permalink
0005370: Send schema DDL detects widened varchar but does not alter
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jul 20, 2022
1 parent 7b282a0 commit 95b8c24
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions symmetric-db/src/main/java/org/jumpmind/db/model/Column.java
Expand Up @@ -392,6 +392,12 @@ public void setSize(String size) {
sizeAsInt = null;
scale = 0;
}
if (platformColumns != null) {
for (PlatformColumn platformColumn : platformColumns.values()) {
platformColumn.setSize(sizeAsInt == null ? -1 : sizeAsInt);
platformColumn.setDecimalDigits(size == null || size.indexOf(",") < 0 ? -1 : scale);
}
}
}

/**
Expand Down Expand Up @@ -428,6 +434,12 @@ public final void setSizeAndScale(int size, int scale) {
if (scale > 0) {
this.size += "," + scale;
}
if (platformColumns != null) {
for (PlatformColumn platformColumn : platformColumns.values()) {
platformColumn.setSize(size);
platformColumn.setDecimalDigits(scale);
}
}
}

/**
Expand Down

0 comments on commit 95b8c24

Please sign in to comment.