Skip to content

Commit 6c54767

Browse files
quaffmminella
authored andcommitted
Treat MariaDB as MySQL
MariaDB is a fork of MySQL
1 parent ce9a359 commit 6c54767

File tree

1 file changed

+2
-0
lines changed
  • spring-batch-infrastructure/src/main/java/org/springframework/batch/support

1 file changed

+2
-0
lines changed

spring-batch-infrastructure/src/main/java/org/springframework/batch/support/DatabaseType.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ public String getProductName() {
7878
* @throws IllegalArgumentException if none is found.
7979
*/
8080
public static DatabaseType fromProductName(String productName){
81+
if(productName.equals("MariaDB"))
82+
productName = "MySQL";
8183
if(!nameMap.containsKey(productName)){
8284
throw new IllegalArgumentException("DatabaseType not found for product name: [" +
8385
productName + "]");

0 commit comments

Comments
 (0)