Skip to content
Permalink
Browse files

0002152: DDL errors on DB2 i5 AS/400

  • Loading branch information...
erilong committed Jan 21, 2015
1 parent 35a4ef9 commit 9ad6a79cde170ff554ac0360e10ca1f9d70553cb
@@ -6,6 +6,7 @@
import java.util.HashSet;
import java.util.Map;

import org.apache.commons.lang.StringUtils;
import org.jumpmind.db.model.Column;
import org.jumpmind.db.model.IIndex;
import org.jumpmind.db.model.Table;
@@ -62,7 +63,7 @@ protected Table postprocessTableFromDatabase(Table table) {
if (table != null) {
for (int columnIdx = 0; columnIdx < table.getColumnCount(); columnIdx++) {
Column column = table.getColumn(columnIdx);
if (column.getDefaultValue().equals("")) {
if (StringUtils.isBlank(column.getDefaultValue())) {
column.setDefaultValue(null);
}
}

0 comments on commit 9ad6a79

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