skipDataSourceCheck() when using readOnlyDatabase

As we don't want the warning logged in this case:
DataSource [{0}] has autoCommit defaulting to true!
This commit is contained in:
Rob Bygrave
2023-11-23 23:23:53 +13:00
parent 87ad874621
commit 97709d3493
2 changed files with 7 additions and 10 deletions
@@ -1336,7 +1336,7 @@ public class DatabaseConfig implements DatabaseBuilder.Settings {
@Override
public boolean skipDataSourceCheck() {
return skipDataSourceCheck;
return skipDataSourceCheck || readOnlyDatabase;
}
@Override