Skip to content

Commit

Permalink
0001348: Table object passed to DatabaseWriterFilters do not have typ…
Browse files Browse the repository at this point in the history
…es on them any more
  • Loading branch information
chenson42 committed Jul 26, 2013
1 parent 1c48655 commit d3cd8d6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions symmetric-db/src/main/java/org/jumpmind/db/model/Table.java
Expand Up @@ -1250,14 +1250,16 @@ public boolean containsJdbcTypes() {
}

public void copyColumnTypesFrom(Table table) {
if (columns != null) {
for (Column column : columns) {
Column sourceColumn = table.getColumnWithName(column.getName());
if (sourceColumn != null) {
column.setJdbcTypeCode(sourceColumn.getJdbcTypeCode());
column.setJdbcTypeName(sourceColumn.getJdbcTypeName());
column.setMappedTypeCode(sourceColumn.getMappedTypeCode());
column.setMappedType(sourceColumn.getMappedType());
if (table != null) {
if (columns != null) {
for (Column column : columns) {
Column sourceColumn = table.getColumnWithName(column.getName());
if (sourceColumn != null) {
column.setJdbcTypeCode(sourceColumn.getJdbcTypeCode());
column.setJdbcTypeName(sourceColumn.getJdbcTypeName());
column.setMappedTypeCode(sourceColumn.getMappedTypeCode());
column.setMappedType(sourceColumn.getMappedType());
}
}
}
}
Expand Down

0 comments on commit d3cd8d6

Please sign in to comment.