From 8bd63116d07260b616b25b4bddf68e2ae5bee14e Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Fri, 19 Jun 2020 18:06:05 +0100 Subject: [PATCH] HHH-14077 PostgreSQL, skip testLiteralProjectionAndGroupBy (PostgreSQL does not support literals in group by statement) --- .../criteria/literal/CriteriaLiteralWithSingleQuoteTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/literal/CriteriaLiteralWithSingleQuoteTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/literal/CriteriaLiteralWithSingleQuoteTest.java index cec46bd0fc..dc6a477bf7 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/literal/CriteriaLiteralWithSingleQuoteTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/literal/CriteriaLiteralWithSingleQuoteTest.java @@ -8,7 +8,10 @@ import javax.persistence.Table; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; +import org.hibernate.dialect.PostgreSQLDialect; + import org.hibernate.testing.junit5.EntityManagerFactoryBasedFunctionalTest; +import org.hibernate.testing.orm.junit.SkipForDialect; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -52,6 +55,7 @@ public class CriteriaLiteralWithSingleQuoteTest extends EntityManagerFactoryBase } @Test + @SkipForDialect(dialectClass = PostgreSQLDialect.class, reason = "PostgreSQL does not support literals in group by statement") public void testLiteralProjectionAndGroupBy() { inTransaction( entityManager -> {