HHH-9301 Fix test under PostgreSQL

This commit is contained in:
Jan-Willem Gmelig Meyling 2019-12-04 20:26:24 +01:00 committed by Andrea Boriero
parent 963a516ea8
commit a6b924ffe7
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ public class GroupByAliasTest extends BaseEntityManagerFunctionalTestCase {
List<Tuple> list = doInJPA(this::entityManagerFactory, entityManager -> {
return entityManager.createQuery(
"select p.association as id_alias, sum(p.age) " +
"from Person p group by id_alias order by id_alias", Tuple.class)
"from Person p group by id_alias, p.association.id, p.association.name order by id_alias", Tuple.class)
.getResultList();
});
@ -105,7 +105,7 @@ public class GroupByAliasTest extends BaseEntityManagerFunctionalTestCase {
List<Tuple> list = doInJPA(this::entityManagerFactory, entityManager -> {
return entityManager.createQuery(
"select p.id as id_alias_1, p.association as id_alias_2, sum(p.age) " +
"select p.id as id_alias_1, p.association.id as id_alias_2, sum(p.age) " +
"from Person p group by id_alias_1, id_alias_2 order by id_alias_1, id_alias_2 ", Tuple.class)
.getResultList();
});