diff --git a/src/main/java/io/ebean/config/dbplatform/mysql/MySqlPlatform.java b/src/main/java/io/ebean/config/dbplatform/mysql/MySqlPlatform.java index 83d509da4..07698f832 100644 --- a/src/main/java/io/ebean/config/dbplatform/mysql/MySqlPlatform.java +++ b/src/main/java/io/ebean/config/dbplatform/mysql/MySqlPlatform.java @@ -51,8 +51,8 @@ public class MySqlPlatform extends DatabasePlatform { this.openQuote = "`"; this.closeQuote = "`"; // use pipe for escaping as it depends if mysql runs in no_backslash_escapes or not. - this.likeClauseRaw = "like ? escape ''"; - this.likeClauseEscaped = "like ? escape '|'"; + this.likeClauseRaw = "like ? escape''"; + this.likeClauseEscaped = "like ? escape'|'"; this.forwardOnlyHintOnFindIterate = true; this.booleanDbType = Types.BIT;