mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Fix like escaping for DB2, Oracle and MySql (#1162)
* Extended test case to show problem * FIX: Proper escaping of backslash in like/contains queries * Had to replace "like ?" assertions in tests with "like " as mysql will do a "like binary ? escape'|'" now to be case sensitive
This commit is contained in:
committed by
Rob Bygrave
parent
e4eca4bbe9
commit
1909ba1557
@@ -78,7 +78,7 @@ public class TestBatchLazyWithCacheHits extends BaseTestCase {
|
||||
|
||||
// batch lazy loading into cache
|
||||
assertThat(sql).hasSize(2);
|
||||
assertThat(sql.get(0)).contains("from uuone t0 where t0.name like ?");
|
||||
assertThat(sql.get(0)).contains("from uuone t0 where t0.name like ");
|
||||
assertThat(sql.get(1)).contains("from uuone t0 where t0.id in (?,");
|
||||
|
||||
statistics = beanCache.getStatistics(true);
|
||||
|
||||
Reference in New Issue
Block a user