#1695 Add StartMyServer - docker mysql with collation options

- Adjust TestWhereLikeWithSlash ignoring slash escaping assert for mysql (due to dependency on no_backslash_escapes setting)
This commit is contained in:
rob bygrave
2019-05-16 16:55:05 +12:00
parent b7905daeb5
commit fa5ce9cbba
4 changed files with 37 additions and 6 deletions
@@ -26,10 +26,11 @@ public class TestWhereLikeWithSlash extends BaseTestCase {
Query<EBasic> query1 = Ebean.find(EBasic.class).where().like("name", "slash\\mon%").query();
List<EBasic> list1 = query1.findList();
// This doesn't work in the latest version of H2 so disable for now.
// Still good on Postgres which was the original issue
assertEquals(1, list1.size());
if (!isMySql()) {
// For mysql this assert depends on no_backslash_escapes setting so we won't assert here
// Still good on Postgres which was the original issue
assertEquals(1, list1.size());
}
}
@Test