Game uses hikaricp for all connection pooling. Connection count set dynamically.

This commit is contained in:
MagicBot committed 2023-05-20 09:39:23 -04:00
1 parent 3c5ffed352
commit 0e4490576a
16 files changed
+136 -184

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ public abstract class dbHandlerBase {
protected final void prepareCallable(final String sql) {
try {
this.cs.set((CallableStatement) DbManager.getConn().prepareCall(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY));
this.cs.set((CallableStatement) DbManager.getConnection().prepareCall(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY));
} catch (SQLException e) {
Logger.error("DbManager.getConn", e);
Logger.error("SQL Error number: " + e.getErrorCode());