parent
748a80c448
commit
dc8b55c0ef
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue