|
22 | 22 | import org.hibernate.Transaction; |
23 | 23 | import org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl; |
24 | 24 | import org.hibernate.cfg.Configuration; |
| 25 | +import org.hibernate.dialect.MySQL57InnoDBDialect; |
25 | 26 | import org.hibernate.dialect.Oracle8iDialect; |
26 | 27 | import org.hibernate.dialect.PostgreSQL81Dialect; |
| 28 | +import org.hibernate.dialect.PostgreSQL92Dialect; |
| 29 | +import org.hibernate.dialect.PostgreSQL9Dialect; |
27 | 30 | import org.hibernate.dialect.PostgreSQLDialect; |
| 31 | +import org.hibernate.dialect.PostgresPlusDialect; |
28 | 32 | import org.hibernate.dialect.function.SQLFunction; |
29 | 33 | import org.hibernate.stat.Statistics; |
30 | 34 |
|
31 | 35 | import org.hibernate.testing.FailureExpected; |
32 | 36 | import org.hibernate.testing.SkipForDialect; |
| 37 | +import org.hibernate.testing.SkipForDialects; |
33 | 38 | import org.hibernate.testing.TestForIssue; |
34 | 39 | import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; |
35 | 40 | import org.hibernate.test.annotations.A320; |
@@ -98,10 +103,13 @@ public void testNativeQueryWithFormulaAttributeWithoutAlias() { |
98 | 103 |
|
99 | 104 | @Test |
100 | 105 | @TestForIssue( jiraKey = "HHH-10161") |
101 | | -@SkipForDialect( |
102 | | -value = Oracle8iDialect.class, |
103 | | -jiraKey = "HHH-10161", |
104 | | -comment = "Oracle cannot convert untyped null (assumed to be BINARY type) to NUMBER") |
| 106 | +@SkipForDialects( |
| 107 | +value = { |
| 108 | +@SkipForDialect(value = Oracle8iDialect.class, jiraKey = "HHH-10161", comment = "Cannot convert untyped null (assumed to be BINARY type) to NUMBER"), |
| 109 | +@SkipForDialect(value = PostgreSQL9Dialect.class, jiraKey = "HHH-10312", comment = "Cannot convert untyped null (assumed to be bytea type) to bigint"), |
| 110 | +@SkipForDialect(value = PostgresPlusDialect.class, jiraKey = "HHH-10312", comment = "Cannot convert untyped null (assumed to be bytea type) to bigint") |
| 111 | +} |
| 112 | +) |
105 | 113 | public void testQueryWithNullParameter(){ |
106 | 114 | Chaos c0 = new Chaos(); |
107 | 115 | c0.setId( 0L ); |
@@ -182,10 +190,13 @@ public void testQueryWithNullParameterTyped(){ |
182 | 190 |
|
183 | 191 | @Test |
184 | 192 | @TestForIssue( jiraKey = "HHH-10161") |
185 | | -@SkipForDialect( |
186 | | -value = Oracle8iDialect.class, |
187 | | -jiraKey = "HHH-10161", |
188 | | -comment = "Oracle cannot convert untyped null (assumed to be BINARY type) to NUMBER") |
| 193 | +@SkipForDialects( |
| 194 | +value = { |
| 195 | +@SkipForDialect(value = Oracle8iDialect.class, jiraKey = "HHH-10161", comment = "Cannot convert untyped null (assumed to be BINARY type) to NUMBER"), |
| 196 | +@SkipForDialect(value = PostgreSQL9Dialect.class, jiraKey = "HHH-10312", comment = "Cannot convert untyped null (assumed to be bytea type) to bigint"), |
| 197 | +@SkipForDialect(value = PostgresPlusDialect.class, jiraKey = "HHH-10312", comment = "Cannot convert untyped null (assumed to be bytea type) to bigint") |
| 198 | +} |
| 199 | +) |
189 | 200 | public void testNativeQueryWithNullParameter(){ |
190 | 201 | Chaos c0 = new Chaos(); |
191 | 202 | c0.setId( 0L ); |
|
0 commit comments