Skip to content

Commit 90072d0

Browse files
committed
Test H2SequenceMaxValueIncrementer against all H2 2.0.x compatibility modes
See gh-27870
1 parent 54bdab4 commit 90072d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-jdbc/src/test/java/org/springframework/jdbc/support/incrementer/H2SequenceMaxValueIncrementerTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,9 @@ void incrementsSequenceUsingH2EmbeddedDatabaseConfigurer() {
7272

7373
/**
7474
* Tests that the incrementer works when using all supported H2 <em>compatibility modes</em>.
75-
*
76-
* <p>The following modes are only supported with H2 2.x or higher: STRICT, LEGACY, MariaDB
7775
*/
7876
@ParameterizedTest
79-
@ValueSource(strings = { "DB2", "Derby", "HSQLDB", "MSSQLServer", "MySQL", "Oracle", "PostgreSQL" })
77+
@ValueSource(strings = { "STRICT", "LEGACY", "DB2", "Derby", "HSQLDB", "MariaDB", "MSSQLServer", "MySQL", "Oracle", "PostgreSQL" })
8078
void incrementsSequenceWithExplicitH2CompatibilityMode(String compatibilityMode) {
8179
String connectionUrl = String.format("jdbc:h2:mem:%s;MODE=%s", UUID.randomUUID().toString(), compatibilityMode);
8280
DataSource dataSource = new SimpleDriverDataSource(new org.h2.Driver(), connectionUrl, "sa", "");

0 commit comments

Comments
 (0)