Merge lp:~openerp-dev/openobject-server/7.0-rstcnx-chs into lp:openobject-server/7.0
Proposed by
Christophe Simonis (OpenERP)
Status: | Superseded |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-server/7.0-rstcnx-chs |
Merge into: | lp:openobject-server/7.0 |
Diff against target: |
30 lines (+10/-2) 1 file modified
openerp/sql_db.py (+10/-2) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-server/7.0-rstcnx-chs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+148455@code.launchpad.net |
This proposal has been superseded by a proposal from 2013-02-16.
To post a comment you must log in.
LGTM, but after testing with older psycopg2 versions I had to add a check before calling cnx.close(), as close() used to raise an Exception if the connection was already marked as closed (that is, before psycopg2 2.4.5)
Note that reset() was introduced in psycopg2 2.0.12, so we might want to make the requirement explicit in setup.py. For 7.0 we actually require the `current version from debian stable as of the release date`, and this has been 2.2.1 since 2010.
See also the rationale for this patch in the comments on https:/ /code.launchpad .net/~florent. x/openobject- server/ trunk-bug- 905257- fix-reconnect/ +merge/ 132149