File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
import jakarta .persistence .Timeout ;
9
9
import org .hibernate .PessimisticLockException ;
10
10
import org .hibernate .community .dialect .InformixDialect ;
11
+ import org .hibernate .dialect .CockroachDialect ;
11
12
import org .hibernate .dialect .MariaDBDialect ;
12
13
import org .hibernate .dialect .lock .PessimisticEntityLockException ;
13
14
import org .hibernate .jpa .SpecHints ;
@@ -87,6 +88,7 @@ void testFindNoWait(SessionFactoryScope factoryScope) {
87
88
@ Test
88
89
@ RequiresDialectFeature (feature = DialectFeatureChecks .SupportNoWait .class )
89
90
@ SkipForDialect (dialectClass = InformixDialect .class , reason = "no failure" )
91
+ @ SkipForDialect (dialectClass = CockroachDialect .class , reason = "Seems FOR UPDATE locks might block read accesses of other TXs" )
90
92
void testLockNoWait (SessionFactoryScope factoryScope ) {
91
93
factoryScope .inTransaction ( (session ) -> {
92
94
session .find (Book .class ,1 , PESSIMISTIC_WRITE );
Original file line number Diff line number Diff line change 15
15
import org .hibernate .dialect .SybaseDialect ;
16
16
import org .hibernate .type .descriptor .jdbc .BlobJdbcType ;
17
17
import org .hibernate .type .descriptor .jdbc .IntegerJdbcType ;
18
- import org .hibernate .type .descriptor .jdbc .VarbinaryJdbcType ;
19
18
import org .hibernate .type .descriptor .jdbc .spi .JdbcTypeRegistry ;
20
19
21
20
import org .hibernate .testing .orm .junit .BaseSessionFactoryFunctionalTest ;
@@ -54,7 +53,7 @@ public void testStandardBasicSqlTypeDescriptor() {
54
53
// A few dialects explicitly override BlobTypeDescriptor.DEFAULT
55
54
if ( CockroachDialect .class .isInstance ( dialect ) ) {
56
55
assertSame (
57
- VarbinaryJdbcType . INSTANCE ,
56
+ BlobJdbcType . MATERIALIZED ,
58
57
jdbcTypeRegistry .getDescriptor ( Types .BLOB )
59
58
);
60
59
}
You can’t perform that action at this time.
0 commit comments