FIX: correct behavior of "startsWith, "contains" etc (#1031)

* FIX: correct behavior of "startsWith" if string contains "like"-wildcards

* Removed likeClasues with disabled escaping in database platforms as bind values are properly escaped now.
This commit is contained in:
Roland Praml
2017-06-19 22:21:26 +12:00
committed by Rob Bygrave
parent a1f95bf25e
commit bc74d35651
13 changed files with 162 additions and 15 deletions
@@ -93,6 +93,11 @@ public class DefaultExpressionRequest implements SpiExpressionRequest {
sql.append(" ");
}
@Override
public String escapeLikeString(String value) {
return queryRequest.escapeLikeString(value);
}
/**
* Increments the parameter index and returns that value.
*/