From 573673ef2b8b366e3ccef30d85fdb282c3a3890b Mon Sep 17 00:00:00 2001 From: rob bygrave Date: Thu, 10 Oct 2019 15:14:38 +1300 Subject: [PATCH] Fix for tests, make MySql like escape consistent with others --- .../java/io/ebean/config/dbplatform/mysql/MySqlPlatform.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;