Treat MariaDB as MySQL
MariaDB is a fork of MySQL
This commit is contained in:
committed by
Michael Minella
parent
ce9a359626
commit
6c5476780e
@@ -78,6 +78,8 @@ public enum DatabaseType {
|
||||
* @throws IllegalArgumentException if none is found.
|
||||
*/
|
||||
public static DatabaseType fromProductName(String productName){
|
||||
if(productName.equals("MariaDB"))
|
||||
productName = "MySQL";
|
||||
if(!nameMap.containsKey(productName)){
|
||||
throw new IllegalArgumentException("DatabaseType not found for product name: [" +
|
||||
productName + "]");
|
||||
|
||||
Reference in New Issue
Block a user