Skip to content

Commit 1cdf75c

Browse files
dreab8gbadner
authored andcommitted
HHH-14077 PostgreSQL, skip testLiteralProjectionAndGroupBy (PostgreSQL does not support literals in group by statement)
1 parent 646b383 commit 1cdf75c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hibernate-core/src/test/java/org/hibernate/jpa/test/criteria/literal/CriteriaLiteralWithSingleQuoteTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,19 @@
1414
import javax.persistence.criteria.CriteriaBuilder;
1515
import javax.persistence.criteria.CriteriaQuery;
1616

17+
import org.hibernate.dialect.PostgreSQL81Dialect;
1718
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
1819

20+
import org.hibernate.testing.SkipForDialect;
21+
import org.hibernate.testing.TestForIssue;
1922
import org.junit.After;
2023
import org.junit.Before;
2124
import org.junit.Test;
2225

2326
import static org.hibernate.testing.transaction.TransactionUtil.doInJPA;
2427
import static org.junit.Assert.assertEquals;
2528

29+
@TestForIssue( jiraKey = "HHH-14077")
2630
public class CriteriaLiteralWithSingleQuoteTest extends BaseEntityManagerFunctionalTestCase {
2731

2832
@Test
@@ -56,6 +60,7 @@ public void literalProjectionTest() throws Exception {
5660
}
5761

5862
@Test
63+
@SkipForDialect(value = PostgreSQL81Dialect.class, comment = "PostgreSQL does not support literals in group by statement")
5964
public void testLiteralProjectionAndGroupBy() throws Exception {
6065
doInJPA(
6166
this::entityManagerFactory,

0 commit comments

Comments
 (0)