diff options
| author | Christophe Simonis <christophe@tinyerp.com> | 2009-01-12 10:40:20 +0100 |
|---|---|---|
| committer | Christophe Simonis <christophe@tinyerp.com> | 2009-01-12 10:40:20 +0100 |
| commit | 9aa2c5fb5c248c40887d664860379dc30bc78fe4 (patch) | |
| tree | d71a3bfc0e84a891a8664d14cc3368f0d00dc579 /bin/sql_db.py | |
| parent | e6c2039ec40eaeb7b5a4fdd7982cd15179a74907 (diff) | |
[FIX] delete the connection pool to template1 when finished
[IMP] sql_db.db_connect does not take the 'serialize' parameter anymore
lp bug: https://launchpad.net/bugs/314973 fixed
bzr revid: christophe@tinyerp.com-20090112094020-6l1hdgp5oflengl6
Diffstat (limited to 'bin/sql_db.py')
| -rw-r--r-- | bin/sql_db.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sql_db.py b/bin/sql_db.py index 49094a438f8..1dbdbbc3611 100644 --- a/bin/sql_db.py +++ b/bin/sql_db.py @@ -221,9 +221,10 @@ class PoolManager(object): logger = netsvc.Logger() logger.notifyChannel('dbpool', netsvc.LOG_INFO, 'Closing all connections to %s' % (db_name,)) cls._pools[db_name].closeall() + print "closeall done" del cls._pools[db_name] -def db_connect(db_name, serialize=0): +def db_connect(db_name): return PoolManager.get(db_name) def close_db(db_name): |
