Skip to content

Conversation

@bog-walk
Copy link
Member

@bog-walk bog-walk commented Dec 8, 2025

Description

Summary of the change:

  • Bump MariaDB Connector/J from 3.3.1 to 3.5.6
  • Bump MariaDB docker image to use MariaDB 12.x
  • Remove gradle task for testing MARIADB_V2 (which used last driver version 2.x)

Detailed description:

  • Why: These are the latest driver and server versions for MariaDB.

  • Why Drop MariaDB 2.x from tests:

To be honest, I'm not sure why we were testing the 2 drivers (on the same server version) when it was documented that 3.x would be fully backwards compatible with 2.7. There was also no distinction in a single test between V2 versus V3 (unlike with MySQL 5 vs 8). So we have no example of a single case where the 3.x driver would pass while the 2.x driver would fail.

It is also documented that driver 2.7 would stop getting maintenance releases after 3.x became stable, which was in 2022.


Type of Change

Please mark the relevant options with an "X":

  • Other - Test dependency bump

Affected databases:

  • MariaDB

Checklist

  • Unit tests are in place
  • The build is green (including the Detekt check)
  • All public methods affected by my PR has up to date API docs
  • Documentation for my change is up to date

Comment on lines -116 to +117
if (testDb in TestDB.ALL_MYSQL) {
// Query execution was interrupted, max statement execution time exceeded
expectException<ExposedR2dbcException> {
queryWithHint.single()
}
} else {
// MariaDB has much fewer optimizer hint options and, like any other db, will just ignore the comment
expect(0) {
queryWithHint.single()[sleepNSeconds]
}
// Query execution was interrupted, max statement execution time exceeded
expectException<ExposedR2dbcException> {
queryWithHint.single()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MariaDB server 12.x came with expanded optimizer hint support, like the use of MAX_EXECUTION_TIME in this test.

@bog-walk bog-walk requested a review from obabichevjb December 8, 2025 22:18
}

withTables(excludeSettings = TestDB.ALL_MARIADB + TestDB.MYSQL_V5, testTable) { testDb ->
withTables(excludeSettings = setOf(TestDB.MARIADB, TestDB.MYSQL_V5), testTable) { testDb ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be good to keep ALL_MARIADB and replace all the usages of MARIADB with ALL_MARIADB. It would be easier to add next version if happens one day. But I don't expect it in the nearest future so it's completely not critical

@bog-walk bog-walk merged commit 2ede24a into main Dec 9, 2025
4 of 5 checks passed
@bog-walk bog-walk deleted the bog-walk/bump-mariadb-drop-versioning branch December 9, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants