Detect MariaDB as MySQL (for mariadb-java-client 2.4+ compatibility)

Closes gh-22344
This commit is contained in:
Juergen Hoeller
2019-02-05 16:02:17 +01:00
parent 17caac8f1f
commit ac4525ddf8
2 changed files with 10 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2019 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.
@@ -418,6 +418,9 @@ 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) ||