Skip to content

Commit

Permalink
0004090: Fixed empty string default values not syncing to target
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-miller-jumpmind committed Aug 18, 2022
1 parent 02611bc commit 2f80b6c
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -58,7 +58,6 @@
import java.util.Map;

import org.apache.commons.text.StringEscapeUtils;
import org.apache.commons.lang3.StringUtils;
import org.jumpmind.db.model.Column;
import org.jumpmind.db.model.CompressionTypes;
import org.jumpmind.db.model.Database;
Expand Down Expand Up @@ -252,9 +251,7 @@ public static Table nextTable(XmlPullParser parser, String catalog, String schem
} else if (attributeName.equalsIgnoreCase("size")) {
column.setSize(attributeValue);
} else if (attributeName.equalsIgnoreCase("default")) {
if (StringUtils.isNotBlank(attributeValue)) {
column.setDefaultValue(attributeValue);
}
column.setDefaultValue(attributeValue);
} else if (attributeName.equalsIgnoreCase("autoIncrement")) {
column.setAutoIncrement(FormatUtils.toBoolean(attributeValue));
} else if (attributeName.equalsIgnoreCase("javaName")) {
Expand Down

0 comments on commit 2f80b6c

Please sign in to comment.