Commit 650d22b4 authored by Matija Obreza's avatar Matija Obreza

Add % at beginning

parent 4c980822
......@@ -376,7 +376,7 @@ public class DirectMysqlQuery {
private void addParamLike(List<Object> params, JsonNode value) {
if (JsonNodeType.STRING == value.getNodeType()) {
params.add(value.asText() + "%");
params.add("%" + value.asText() + "%");
} else if (JsonNodeType.BOOLEAN == value.getNodeType()) {
params.add(value.asBoolean());
} else if (JsonNodeType.NUMBER == value.getNodeType()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment