Skip to content

Commit 871595c

Browse files
committed
HHH-19498 what happens with useAffectedRows=true ?
1 parent 144cc61 commit 871595c

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/stateless/UpsertVersionedTest.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
import org.hibernate.testing.orm.junit.RequiresDialects;
1616
import org.hibernate.testing.orm.junit.SessionFactory;
1717
import org.hibernate.testing.orm.junit.SessionFactoryScope;
18-
import org.hibernate.testing.orm.junit.SkipForDialect;
19-
import org.hibernate.testing.orm.junit.SkipForDialectGroup;
2018
import org.junit.jupiter.api.Test;
2119

2220
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
@@ -53,13 +51,6 @@ public class UpsertVersionedTest {
5351
});
5452
}
5553

56-
@SkipForDialectGroup(
57-
value = {
58-
@SkipForDialect( dialectClass = MySQLDialect.class,
59-
reason = "These dialects return a rowcount of 1 in a stale upsert, so no StaleStateException is thrown is such cases"),
60-
@SkipForDialect( dialectClass = MariaDBDialect.class )
61-
}
62-
)
6354
@Test void testStaleUpsert(SessionFactoryScope scope) {
6455
scope.getSessionFactory().getSchemaManager().truncate();
6556
scope.inStatelessTransaction( s -> {

local-build-plugins/src/main/groovy/local.databases.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ ext {
123123
'jdbc.driver': 'com.mysql.cj.jdbc.Driver',
124124
'jdbc.user' : 'hibernate_orm_test',
125125
'jdbc.pass' : 'hibernate_orm_test',
126-
'jdbc.url' : 'jdbc:mysql://' + dbHost + '/hibernate_orm_test?allowPublicKeyRetrieval=true',
126+
'jdbc.url' : 'jdbc:mysql://' + dbHost + '/hibernate_orm_test?allowPublicKeyRetrieval=true&useAffectedRows=true',
127127
'jdbc.datasource' : 'com.mysql.jdbc.Driver',
128128
// 'jdbc.datasource' : 'com.mysql.cj.jdbc.MysqlDataSource',
129129
'connection.init_sql' : ''

0 commit comments

Comments
 (0)