浏览代码

Remove redundant maxReconnects database connection property

zreed 11 年之前
父节点
当前提交
94a566acc9
共有 2 个文件被更改,包括 1 次插入1 次删除
  1. 1 0
      Changelog.txt
  2. 0 1
      src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java

+ 1 - 0
Changelog.txt

@@ -27,6 +27,7 @@ Version 1.5.01-dev
  = Fixed bug where Alchemy would not fire BrewEvents
  = Fixed bug with setting custom names and lore in treasures config
  = Fixed bug which would cause a NullPointerException with getFlowerAndGrassXp()
+ = Fixed bug which could cause and SQLException regarding the connection property 'maxReconnects'.
  ! Changed SecondaryAbilityEvent to implement Cancellable and it now gets fired for damage related secondary abilities
  ! Changed the way mcMMO handles bonus damage, updated for the new damage event API
  ! Changed player data saving. Save tasks are now asynchronous

+ 0 - 1
src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java

@@ -618,7 +618,6 @@ public final class SQLDatabaseManager implements DatabaseManager {
             connectionProperties.put("user", Config.getInstance().getMySQLUserName());
             connectionProperties.put("password", Config.getInstance().getMySQLUserPassword());
             connectionProperties.put("autoReconnect", "false");
-            connectionProperties.put("maxReconnects", "0");
             connection = DriverManager.getConnection(connectionString, connectionProperties);
 
             mcMMO.p.getLogger().info("Connection to MySQL was a success!");