Upgrade to Oracle Database 21.3.0.0
Closes gh-28054
This commit is contained in:
@@ -1313,7 +1313,7 @@ bom {
|
||||
]
|
||||
}
|
||||
}
|
||||
library("Oracle Database", "21.1.0.0") {
|
||||
library("Oracle Database", "21.3.0.0") {
|
||||
group("com.oracle.database.jdbc") {
|
||||
imports = [
|
||||
"ojdbc-bom"
|
||||
|
||||
@@ -646,7 +646,17 @@ public final class DataSourceBuilder<T extends DataSource> {
|
||||
add(DataSourceProperty.DRIVER_CLASS_NAME, PoolDataSource::getConnectionFactoryClassName,
|
||||
PoolDataSource::setConnectionFactoryClassName);
|
||||
add(DataSourceProperty.USERNAME, PoolDataSource::getUser, PoolDataSource::setUser);
|
||||
add(DataSourceProperty.PASSWORD, PoolDataSource::getPassword, PoolDataSource::setPassword);
|
||||
add(DataSourceProperty.PASSWORD, passwordGetter(), PoolDataSource::setPassword);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
static Getter<PoolDataSource, String> passwordGetter() {
|
||||
try {
|
||||
return (dataSource) -> dataSource.getPassword();
|
||||
}
|
||||
catch (NoSuchMethodError ex) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user