HHH-14077 PostgreSQL, skip testLiteralProjectionAndGroupBy (PostgreSQL does not support literals in group by statement)

This commit is contained in:
Andrea Boriero 2020-06-19 17:52:20 +01:00
parent bb9233472b
commit 9756b0fba8
1 changed files with 3 additions and 0 deletions

View File

@ -14,8 +14,10 @@ import javax.persistence.Table;
import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.CriteriaQuery;
import org.hibernate.dialect.PostgreSQL81Dialect;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
@ -58,6 +60,7 @@ public class CriteriaLiteralWithSingleQuoteTest extends BaseEntityManagerFunctio
} }
@Test @Test
@SkipForDialect(value = PostgreSQL81Dialect.class, comment = "PostgreSQL does not support literals in group by statement")
public void testLiteralProjectionAndGroupBy() throws Exception { public void testLiteralProjectionAndGroupBy() throws Exception {
doInJPA( doInJPA(
this::entityManagerFactory, this::entityManagerFactory,