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 88import jakarta .persistence .Timeout ;
99import org .hibernate .PessimisticLockException ;
1010import org .hibernate .community .dialect .InformixDialect ;
11+ import org .hibernate .dialect .CockroachDialect ;
1112import org .hibernate .dialect .MariaDBDialect ;
1213import org .hibernate .dialect .lock .PessimisticEntityLockException ;
1314import org .hibernate .jpa .SpecHints ;
@@ -87,6 +88,7 @@ void testFindNoWait(SessionFactoryScope factoryScope) {
8788 @ Test
8889 @ RequiresDialectFeature (feature = DialectFeatureChecks .SupportNoWait .class )
8990 @ SkipForDialect (dialectClass = InformixDialect .class , reason = "no failure" )
91+ @ SkipForDialect (dialectClass = CockroachDialect .class , reason = "Seems FOR UPDATE locks might block read accesses of other TXs" )
9092 void testLockNoWait (SessionFactoryScope factoryScope ) {
9193 factoryScope .inTransaction ( (session ) -> {
9294 session .find (Book .class ,1 , PESSIMISTIC_WRITE );
Original file line number Diff line number Diff line change 1515import org .hibernate .dialect .SybaseDialect ;
1616import org .hibernate .type .descriptor .jdbc .BlobJdbcType ;
1717import org .hibernate .type .descriptor .jdbc .IntegerJdbcType ;
18- import org .hibernate .type .descriptor .jdbc .VarbinaryJdbcType ;
1918import org .hibernate .type .descriptor .jdbc .spi .JdbcTypeRegistry ;
2019
2120import org .hibernate .testing .orm .junit .BaseSessionFactoryFunctionalTest ;
@@ -54,7 +53,7 @@ public void testStandardBasicSqlTypeDescriptor() {
5453 // A few dialects explicitly override BlobTypeDescriptor.DEFAULT
5554 if ( CockroachDialect .class .isInstance ( dialect ) ) {
5655 assertSame (
57- VarbinaryJdbcType . INSTANCE ,
56+ BlobJdbcType . MATERIALIZED ,
5857 jdbcTypeRegistry .getDescriptor ( Types .BLOB )
5958 );
6059 }
You can’t perform that action at this time.
0 commit comments