#1696 - Refactor - trim unnecessary whitespace around IN clause bind parameters

This commit is contained in:
rob bygrave
2019-05-08 23:22:13 +12:00
parent b62cea5073
commit 2648423930
7 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -76,7 +76,7 @@ public class TestBeanCache extends BaseTestCase {
List<String> sql = LoggedSqlCollector.current();
assertThat(sql).hasSize(1);
if (isH2()) {
assertThat(sql.get(0)).contains("from o_cached_bean t0 where t0.id in (?, ?, ? )");
assertThat(sql.get(0)).contains("from o_cached_bean t0 where t0.id in (?,?,?)");
}
log.info("All hits (3 of 3) ...");
@@ -105,7 +105,7 @@ public class TestBeanCache extends BaseTestCase {
assertThat(sql).hasSize(1);
if (isH2()) {
// fetch the miss from DB
assertThat(sql.get(0)).contains("from o_cached_bean t0 where t0.id in (? )");
assertThat(sql.get(0)).contains("from o_cached_bean t0 where t0.id in (?)");
}
// remove beans so that we get a "partial" hit (1 out of 3 in cache)
@@ -124,7 +124,7 @@ public class TestBeanCache extends BaseTestCase {
assertThat(sql).hasSize(1);
if (isH2()) {
// fetch the misses from DB
assertThat(sql.get(0)).contains("from o_cached_bean t0 where t0.id in (?, ? )");
assertThat(sql.get(0)).contains("from o_cached_bean t0 where t0.id in (?,?)");
}
}