mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-05 16:59:28 +00:00
Merge branch '3.2.x'
Closes gh-39077
This commit is contained in:
+1
-2
@@ -46,8 +46,7 @@ final class SqlDialectLookup {
|
||||
* @return the most suitable {@link SQLDialect}
|
||||
*/
|
||||
static SQLDialect getDialect(DataSource dataSource) {
|
||||
try {
|
||||
Connection connection = (dataSource != null) ? dataSource.getConnection() : null;
|
||||
try (Connection connection = (dataSource != null) ? dataSource.getConnection() : null) {
|
||||
return JDBCUtils.dialect(connection);
|
||||
}
|
||||
catch (SQLException ex) {
|
||||
|
||||
Reference in New Issue
Block a user