Handle MariaDB independently of MySQL #3530
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Jira URL
This is a partially fix to https://jira.xwiki.org/browse/ADMINTOOL-64
Changes
Description
toProduct
method inDatabaseProduct
class now returnsDatabaseProduct.MARIADB
when XWiki is relying on MariaDB instead of returningDatabaseProduct.MYSQL
.Clarifications
So far
toProduct
method inDatabaseProduct
class would reports that a MariaDB database is actually MySQL. This was done on purpose according to XWIKI-17912 description and also according to comments in the code. This decision has some (minors) side effects such as incorrect database type reported to the user in Admin Tools application (cf https://jira.xwiki.org/browse/ADMINTOOL-64). This commit is an attempt to handle MariaDB independently of MySQL.The single existing test impact by this change has been update but some additional tests are probably required to increase the confidence in those changes.
Executed Tests
All unit tests of
xwiki-platform
project were executed.Expected merging strategy