File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
hibernate-reactive-core/src/test/java/org/hibernate/reactive Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 38
38
import static org .hibernate .cfg .JdbcSettings .JAKARTA_HBM2DDL_DB_NAME ;
39
39
import static org .hibernate .cfg .JdbcSettings .JAKARTA_JDBC_URL ;
40
40
import static org .hibernate .reactive .BaseReactiveTest .setSqlLoggingProperties ;
41
+ import static org .hibernate .reactive .containers .DatabaseConfiguration .DBType .MARIA ;
41
42
import static org .hibernate .reactive .containers .DatabaseConfiguration .dbType ;
42
43
import static org .junit .jupiter .params .provider .Arguments .arguments ;
43
44
@@ -192,7 +193,13 @@ public void testDeterminedVersion() {
192
193
193
194
// Whatever the version, we don't expect the minimum one
194
195
assertThat ( determinedDatabaseVersion ).isNotEqualTo ( dbType ().getMinimumVersion () );
195
- assertThat ( determinedDatabaseVersion ).isEqualTo ( metadataEnabledDialect .getVersion () );
196
+ assertThat ( determinedDatabaseVersion .getMajor () ).isEqualTo ( metadataEnabledDialect .getVersion ().getMajor () );
197
+ assertThat ( determinedDatabaseVersion .getMinor () ).isEqualTo ( metadataEnabledDialect .getVersion ().getMinor () );
198
+ if ( dbType () != MARIA ) {
199
+ // MariaDB ignore the micro when using metadata
200
+ assertThat ( determinedDatabaseVersion .getMicro () ).isEqualTo ( metadataEnabledDialect .getVersion ().getMicro () );
201
+ assertThat ( determinedDatabaseVersion ).isEqualTo ( metadataEnabledDialect .getVersion () );
202
+ }
196
203
}
197
204
}
198
205
You can’t perform that action at this time.
0 commit comments