mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1186 - ENH: Support using TableValues / Array for select prop in (?) queries
Use Postgres Array ANY and ALL without select unnest
This commit is contained in:
@@ -27,7 +27,7 @@ public class TestQueryInAssocOne extends BaseTestCase {
|
||||
String sql = query.getGeneratedSql();
|
||||
|
||||
assertThat(sql).contains("join o_customer t1 on t1.id = t0.kcustomer_id");
|
||||
assertThat(sql).contains("t0.kcustomer_id in ");
|
||||
platformAssertIn(sql, "where t0.kcustomer_id");
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ public class TestQueryInAssocOne extends BaseTestCase {
|
||||
String sql = query.getGeneratedSql();
|
||||
|
||||
assertThat(sql).contains("join o_customer t1 on t1.id = t0.kcustomer_id");
|
||||
assertThat(sql).contains("t0.kcustomer_id in ");
|
||||
platformAssertIn(sql, "t0.kcustomer_id");
|
||||
}
|
||||
|
||||
|
||||
@@ -61,6 +61,6 @@ public class TestQueryInAssocOne extends BaseTestCase {
|
||||
String sql = query.getGeneratedSql();
|
||||
|
||||
assertThat(sql).contains("join o_customer t1 on t1.id = t0.kcustomer_id");
|
||||
assertThat(sql).contains("t0.kcustomer_id not in ");
|
||||
platformAssertNotIn(sql, "t0.kcustomer_id");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user