Skip to content

Commit

Permalink
0002563: When Primary key is binary; SymmetricDS fails capture changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpmind-josh committed May 14, 2019
1 parent 32311e7 commit 28fd261
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -163,5 +163,15 @@ public long getEstimatedRowCount(Table table) {
return getSqlTemplateDirty().queryForLong("select ifnull(table_rows,-1) from information_schema.tables where table_name = ? and table_schema = ?",
table.getName(), table.getCatalog());
}

@Override
public boolean canColumnBeUsedInWhereClause(Column column) {
if ((column.getMappedTypeCode() == Types.VARBINARY && column.getSizeAsInt() <= 8000)
|| column.getMappedTypeCode() == Types.BINARY) {
return true;
}
return !column.isOfBinaryType();
}


}

0 comments on commit 28fd261

Please sign in to comment.