Skip to content

Commit d029205

Browse files
committed
changed mysql specific LIKE BINARY to LIKE .. COLLATE C to achieve binary comparision
1 parent 1ba1c09 commit d029205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dba/LikeFilter.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function getQueryString(AbstractModelFactory $factory, bool $includeTable = fals
3636
$inv = " NOT";
3737
}
3838

39-
return $table . AbstractModelFactory::getMappedModelKey($factory->getNullObject(), $this->key) . $inv . " LIKE BINARY ?";
39+
return $table . AbstractModelFactory::getMappedModelKey($factory->getNullObject(), $this->key) . $inv . " LIKE ? COLLATE \"C\"";
4040
}
4141

4242
function getValue() {

0 commit comments

Comments
 (0)