Opened 16 years ago
Closed 16 years ago
#9763 closed (duplicate)
is_dirty() in the transactions middleware blocks commit for Postgre
Description ¶
In its default operation Postgre makes a shadow copy of a table for reading, and this persists until you explicitly commit your transaction. However, the TransactionsMiddleware class only calls commit when transaction.is_dirty() returns true. If you only read from the database, commit will never get called.
Possibly the is_dirty() check should be bypassed (or perhaps always return True) for postgres.
Change History (3)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
PostgreSQL here is just a special case; the behavior is wrong everywhere. See #9964.
See: