mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-27 21:01:15 +08:00
#136 added test
This commit is contained in:
parent
e5679d773b
commit
47ddfee23c
@ -40,6 +40,7 @@ import com.mysema.query.sql.SQLSubQuery;
|
||||
import com.mysema.query.sql.SQLTemplates;
|
||||
import com.mysema.query.types.ConstructorExpression;
|
||||
import com.mysema.query.types.Expression;
|
||||
import com.mysema.query.types.NullExpression;
|
||||
import com.mysema.query.types.SubQueryExpression;
|
||||
import com.mysema.testutil.JPAConfig;
|
||||
import com.mysema.testutil.JPATestRunner;
|
||||
@ -243,6 +244,16 @@ public class JPADerbySQLTest {
|
||||
assertFalse(list.isEmpty());
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void Union2() {
|
||||
SAnimal cat = new SAnimal("cat");
|
||||
assertEquals(2, query().union(
|
||||
new SQLSubQuery().from(cat).where(cat.name.eq("Beck")).distinct().list(cat.name, cat.id),
|
||||
new SQLSubQuery().from(cat).where(cat.name.eq("Kate")).distinct().list(cat.name, null))
|
||||
.list().size());
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("unchecked")
|
||||
public void Union_All() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user