From e28d61330ecbf7443a107f869db5fbe9b462e653 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Thu, 28 Oct 2021 09:39:02 +0200 Subject: [PATCH] Derby dialect supportsResultSetPositionQueryMethodsOnForwardOnlyCursor should return false --- .../src/main/java/org/hibernate/dialect/DerbyDialect.java | 5 +++++ .../orm/test/hql/ScrollableCollectionFetchingTest.java | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/DerbyDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/DerbyDialect.java index f8d6ca03cb..75b77144c1 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/DerbyDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/DerbyDialect.java @@ -484,6 +484,11 @@ public class DerbyDialect extends Dialect { return true; } + @Override + public boolean supportsResultSetPositionQueryMethodsOnForwardOnlyCursor() { + return false; + } + @Override public boolean supportsTupleDistinctCounts() { //checked on Derby 10.14 diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/hql/ScrollableCollectionFetchingTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/hql/ScrollableCollectionFetchingTest.java index db84cfe4bc..1fca9d5308 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/hql/ScrollableCollectionFetchingTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/hql/ScrollableCollectionFetchingTest.java @@ -151,7 +151,6 @@ public class ScrollableCollectionFetchingTest { } ); - scope.inTransaction( session -> { assertNotNull(