Merge pull request #28355 from ben-enfuse-io
* pr/28355: Treat MariaDB as an independent database type Closes gh-28355
This commit is contained in:
commit
56551032e3
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -49,6 +49,7 @@ import org.springframework.util.StringUtils;
|
|||
*
|
||||
* @author Thomas Risberg
|
||||
* @author Juergen Hoeller
|
||||
* @author Ben Blinebury
|
||||
*/
|
||||
public abstract class JdbcUtils {
|
||||
|
||||
|
@ -455,9 +456,6 @@ public abstract class JdbcUtils {
|
|||
if (source != null && source.startsWith("DB2")) {
|
||||
name = "DB2";
|
||||
}
|
||||
else if ("MariaDB".equals(source)) {
|
||||
name = "MySQL";
|
||||
}
|
||||
else if ("Sybase SQL Server".equals(source) ||
|
||||
"Adaptive Server Enterprise".equals(source) ||
|
||||
"ASE".equals(source) ||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -27,6 +27,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
*
|
||||
* @author Thomas Risberg
|
||||
* @author Juergen Hoeller
|
||||
* @author Ben Blinebury
|
||||
*/
|
||||
public class JdbcUtilsTests {
|
||||
|
||||
|
@ -37,6 +38,7 @@ public class JdbcUtilsTests {
|
|||
assertThat(JdbcUtils.commonDatabaseName("Sybase SQL Server")).isEqualTo("Sybase");
|
||||
assertThat(JdbcUtils.commonDatabaseName("Adaptive Server Enterprise")).isEqualTo("Sybase");
|
||||
assertThat(JdbcUtils.commonDatabaseName("MySQL")).isEqualTo("MySQL");
|
||||
assertThat(JdbcUtils.commonDatabaseName("MariaDB")).isEqualTo("MariaDB");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue