From 1c1c85c3f89af732cecc54237071e8c6fd68b78e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDeljko=20Tomi=C4=87?= Date: Tue, 23 Nov 2021 08:47:33 +0100 Subject: [PATCH] Fix MariaDB mapping for Quartz DataSource initialization See gh-28779 --- .../quartz/QuartzDataSourceScriptDatabaseInitializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/quartz/QuartzDataSourceScriptDatabaseInitializer.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/quartz/QuartzDataSourceScriptDatabaseInitializer.java index 71d3548b9a35..b230fca1cb3d 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/quartz/QuartzDataSourceScriptDatabaseInitializer.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/quartz/QuartzDataSourceScriptDatabaseInitializer.java @@ -69,7 +69,7 @@ public static DatabaseInitializationSettings getSettings(DataSource dataSource, PlatformPlaceholderDatabaseDriverResolver platformResolver = new PlatformPlaceholderDatabaseDriverResolver(); platformResolver = platformResolver.withDriverPlatform(DatabaseDriver.DB2, "db2_v95"); platformResolver = platformResolver.withDriverPlatform(DatabaseDriver.MYSQL, "mysql_innodb"); - platformResolver = platformResolver.withDriverPlatform(DatabaseDriver.MYSQL, "mysql_innodb"); + platformResolver = platformResolver.withDriverPlatform(DatabaseDriver.MARIADB, "mysql_innodb"); platformResolver = platformResolver.withDriverPlatform(DatabaseDriver.POSTGRESQL, "postgres"); platformResolver = platformResolver.withDriverPlatform(DatabaseDriver.SQLSERVER, "sqlServer"); settings.setSchemaLocations(platformResolver.resolveAll(dataSource, properties.getJdbc().getSchema()));