Skip to content

Commit

Permalink
0003936: MSSQL Server to allow varbinary and binary in the where clause
Browse files Browse the repository at this point in the history
(updates and deletes)
  • Loading branch information
jumpmind-josh committed May 3, 2019
1 parent 1a40185 commit a7b240a
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -20,6 +20,8 @@
*/
package org.jumpmind.db.platform.mssql;

import java.sql.Types;

import javax.sql.DataSource;

import org.apache.commons.lang.StringUtils;
Expand Down Expand Up @@ -93,6 +95,10 @@ public boolean isClob(int type) {

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

Expand Down

0 comments on commit a7b240a

Please sign in to comment.