Treat MariaDB as MySQL

MariaDB is a fork of MySQL
This commit is contained in:
Yanming Zhou
2019-01-31 12:23:04 +08:00
committed by Michael Minella
parent ce9a359626
commit 6c5476780e

View File

@@ -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 + "]");