whyclj
2020-12-28 abbe39a2e93415bff7014cf2134a47103f85dbff
添加关闭sql连接
1个文件已修改
10 ■■■■■ 已修改文件
Central_Monitor/src/com/data/Comm/Central_Data_Task_SQL.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Central_Monitor/src/com/data/Comm/Central_Data_Task_SQL.java
@@ -29,6 +29,8 @@
            sql.sqlMysqlExecute(" CREATE DATABASE IF NOT EXISTS " + Sql_Mysql.DB_MW_Motor);
        } catch (SQLException e) {
            sql.logger.error(e.toString(),e);
        } finally {
            sql.close_con();
        }
    }
    
@@ -42,6 +44,8 @@
            sql.sqlMysqlExecute(" CREATE DATABASE IF NOT EXISTS " + Sql_Mysql.DB_MW_Motor_History);
        } catch (SQLException e) {
            sql.logger.error(e.toString(),e);
        } finally {
            sql.close_con();
        }
    }
    
@@ -82,6 +86,8 @@
            sql.sqlMysqlExecute(sql_str);
        } catch (SQLException e) {
            sql.logger.error(e.toString(), e);
        } finally {
            sql.close_con();
        }
    }
    
@@ -108,6 +114,8 @@
            sql.sqlMysqlExecute(sql_str);
        } catch (SQLException e) {
            sql.logger.error(e.toString(), e);
        } finally {
            sql.close_con();
        }
    }
    
@@ -138,6 +146,8 @@
            sql.sqlMysqlExecute(sql_str);
        } catch (SQLException e) {
            sql.logger.error(e.toString(), e);
        } finally {
            sql.close_con();
        }
    }
}