DELL
2024-09-06 3177b6dec13d24a5a7825371d2c0ad6614702bb0
iec61850for118/src/com/battdata_rt/BattData_RT_RamDB_Thread_SQL.java
@@ -396,8 +396,9 @@
      int conn_max = 0;
      int conn_count = 0;
      Sql_Mysql sql = new Sql_Mysql(conn_pool);
      ResultSet res = null;
      try {
         ResultSet res = sql.sqlMysqlQuery("show variables like 'max_connections'");
         res = sql.sqlMysqlQuery("show variables like 'max_connections'");
         if(res.next()) {
            conn_max = res.getInt(2);
         }
@@ -431,6 +432,13 @@
         // TODO Auto-generated catch block
         sql.logger.error("updateServerState_RamDB_Table():" + e.toString(), e);
      } finally {
         if(null != res) {
            try {
               res.close();
            } catch (SQLException e) {
               sql.logger.error("updateServerState_RamDB_Table():" + e.toString(), e);
            }
         }
         sql.close_con();
      }
   }