odoo/openerp
Vo Minh Thu ad06d1ba56 [FIX] This complements commit 3511,
revision-id: odo@openerp.com-20110714105552-9tgofrjtdgjmgc4b.
Each OpenERP cursor is mapped to a single psycopg2 connexion.
When a cursor is closed, the connexion is pushed back to a
pool and reused later. Now that the 'snapshot isolation' level
is used, the fact we didn't properly commit/rollback a
transaction appears: some 'concurrent' update showed up.
The fix is simple: whenever a cursor is closed, we rollback
any pending operation (which is the expected behavior).
(Furthermore, the connexion is explicitely closed when the
connexion is pushed back but not kept in the pool.)

bzr revid: vmt@openerp.com-20110913143444-s49r7r2h6m00p5s3
2011-09-13 16:34:44 +02:00
..
addons [MERGE] view.rng: @default_group_by for kanban view 2011-09-12 17:24:16 +02:00
conf [FIX] forgot to add new file. 2011-04-29 09:50:30 +02:00
db [REF] openerp.modules 2011-04-20 17:27:18 +02:00
modules [FIX] registry: forgot the self/cls args. 2011-08-31 09:56:39 +02:00
osv [FIX] fields.function: type=binary: workaround for the low byte values (<=0x1f) unsupported in XML 2011-09-06 19:31:40 +02:00
pychart [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
report [FIX] correct env hashbang line in a script 2011-07-31 15:09:54 +01:00
service [IMP] tools.cache: added missing clean_caches_for_db replacement. 2011-08-25 14:47:11 +02:00
test [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
tools [IMP] simplified cache implementation (and stored on the osv), does not support contexts. 2011-08-30 14:15:41 +02:00
wizard [REF] ir.ir_{set,get,del}: removed openerp.ir: 2011-05-19 14:27:52 +02:00
workflow API docs: settings file and titles at modules 2011-06-23 12:03:57 +03:00
.apidoc API doc: move settings file from bin/ to openerp/ 2011-06-23 12:08:07 +03:00
PKG-INFO [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
__init__.py [MERGE] moved around some code (preparing for some refactoring) (large diff). 2011-05-25 18:06:07 +02:00
import_xml.rng [IMP] tools.convert,rng: fixed support for <url> tag 2011-04-11 10:32:01 +02:00
loglevels.py [IMP] forgot to add loglevels.py and reexport 3 functions in tools.misc. 2011-02-08 10:24:58 +01:00
netsvc.py [FIX]:--debug option 2011-07-29 16:50:19 +05:30
pooler.py [LINT] removed unused variable, forgot to change two variables in last commit, corrected typo introduced at 3417.6.6. 2011-06-15 09:22:31 +02:00
release.py [MERGE] merged latest fixes from 6.0 - up to rev 3399 2011-04-11 12:13:27 +02:00
run_tests.py [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
sql_db.py [FIX] This complements commit 3511, 2011-09-13 16:34:44 +02:00
tiny_socket.py API docs: settings file and titles at modules 2011-06-23 12:03:57 +03:00