• Vincent Pelletier's avatar
    ZMySQLDA.db: Close any replaced connection on reconnection. · 604e3ff3
    Vincent Pelletier authored
    MySQLdb relies on garbage collection to close the connection. Relying
    on such asynchronous event as the garbage collector is never a good idea,
    and this can cause issues when the transaction associated with the
    connection is started: because the connector is being replaced, it will
    never be properly aborted. So do not take chances and do not leak open
    connections: always close it.
    604e3ff3
db.py 23.2 KB