mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1999 - Additionally support "none" for read only url
"none" can then be used as a special literal value in configuration for "no read-only jdbc url"
This commit is contained in:
@@ -74,7 +74,8 @@ class InitDataSource {
|
||||
// it has explicitly been set to null, not expected but ok
|
||||
return null;
|
||||
}
|
||||
if (roConfig.getUrl() == null && !config.isAutoReadOnlyDataSource()) {
|
||||
final String url = roConfig.getUrl();
|
||||
if ("none".equalsIgnoreCase(url) || (url == null && !config.isAutoReadOnlyDataSource())) {
|
||||
// no read-only DataSource will be used
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user