Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
f6b59642
Commit
f6b59642
authored
Feb 16, 2021
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.3.x' into 2.4.x
Closes gh-25312
parents
0dbf907f
8cc513e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
DatabaseDriver.java
...in/java/org/springframework/boot/jdbc/DatabaseDriver.java
+2
-2
DatabaseDriverTests.java
...va/org/springframework/boot/jdbc/DatabaseDriverTests.java
+2
-2
No files found.
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java
View file @
f6b59642
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
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.
...
...
@@ -98,7 +98,7 @@ public enum DatabaseDriver {
* Amazon Redshift.
* @since 2.2.0
*/
REDSHIFT
(
"
Amazon
Redshift"
,
"com.amazon.redshift.jdbc.Driver"
,
null
,
"SELECT 1"
),
REDSHIFT
(
"Redshift"
,
"com.amazon.redshift.jdbc.Driver"
,
null
,
"SELECT 1"
),
/**
* HANA - SAP HANA Database - HDB.
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jdbc/DatabaseDriverTests.java
View file @
f6b59642
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
21
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.
...
...
@@ -71,7 +71,7 @@ class DatabaseDriverTests {
assertThat
(
DatabaseDriver
.
fromProductName
(
"MySQL"
)).
isEqualTo
(
DatabaseDriver
.
MYSQL
);
assertThat
(
DatabaseDriver
.
fromProductName
(
"Oracle"
)).
isEqualTo
(
DatabaseDriver
.
ORACLE
);
assertThat
(
DatabaseDriver
.
fromProductName
(
"PostgreSQL"
)).
isEqualTo
(
DatabaseDriver
.
POSTGRESQL
);
assertThat
(
DatabaseDriver
.
fromProductName
(
"
Amazon
Redshift"
)).
isEqualTo
(
DatabaseDriver
.
REDSHIFT
);
assertThat
(
DatabaseDriver
.
fromProductName
(
"Redshift"
)).
isEqualTo
(
DatabaseDriver
.
REDSHIFT
);
assertThat
(
DatabaseDriver
.
fromProductName
(
"Microsoft SQL Server"
)).
isEqualTo
(
DatabaseDriver
.
SQLSERVER
);
assertThat
(
DatabaseDriver
.
fromProductName
(
"SQL SERVER"
)).
isEqualTo
(
DatabaseDriver
.
SQLSERVER
);
assertThat
(
DatabaseDriver
.
fromProductName
(
"DB2"
)).
isEqualTo
(
DatabaseDriver
.
DB2
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment