Upgrade to Oracle Database 21.3.0.0

Closes gh-28054
This commit is contained in:
Andy Wilkinson
2021-09-20 17:44:57 +01:00
parent 3446661862
commit b69ef0c881
2 changed files with 12 additions and 2 deletions

View File

@@ -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"

View File

@@ -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;
}
}
}