File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
main/java/org/springframework/jdbc/support
test/java/org/springframework/jdbc/support Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2021 the original author or authors.
2
+ * Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
49
49
*
50
50
* @author Thomas Risberg
51
51
* @author Juergen Hoeller
52
+ * @author Ben Blinebury
52
53
*/
53
54
public abstract class JdbcUtils {
54
55
@@ -455,9 +456,6 @@ public static String commonDatabaseName(@Nullable String source) {
455
456
if (source != null && source .startsWith ("DB2" )) {
456
457
name = "DB2" ;
457
458
}
458
- else if ("MariaDB" .equals (source )) {
459
- name = "MySQL" ;
460
- }
461
459
else if ("Sybase SQL Server" .equals (source ) ||
462
460
"Adaptive Server Enterprise" .equals (source ) ||
463
461
"ASE" .equals (source ) ||
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2019 the original author or authors.
2
+ * Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
27
27
*
28
28
* @author Thomas Risberg
29
29
* @author Juergen Hoeller
30
+ * @author Ben Blinebury
30
31
*/
31
32
public class JdbcUtilsTests {
32
33
@@ -37,6 +38,7 @@ public void commonDatabaseName() {
37
38
assertThat (JdbcUtils .commonDatabaseName ("Sybase SQL Server" )).isEqualTo ("Sybase" );
38
39
assertThat (JdbcUtils .commonDatabaseName ("Adaptive Server Enterprise" )).isEqualTo ("Sybase" );
39
40
assertThat (JdbcUtils .commonDatabaseName ("MySQL" )).isEqualTo ("MySQL" );
41
+ assertThat (JdbcUtils .commonDatabaseName ("MariaDB" )).isEqualTo ("MariaDB" );
40
42
}
41
43
42
44
@ Test
You can’t perform that action at this time.
0 commit comments