django1/django/db/backends/postgresql_psycopg2
Anssi Kääriäinen 50328f0a61 Fixed #19861 -- Transaction ._dirty flag improvement
There were a couple of errors in ._dirty flag handling:
  * It started as None, but was never reset to None.
  * The _dirty flag was sometimes used to indicate if the connection
    was inside transaction management, but this was not done
    consistently. This also meant the flag had three separate values.
  * The None value had a special meaning, causing for example inability
    to commit() on new connection unless enter/leave tx management was
    done.
  * The _dirty was tracking "connection in transaction" state, but only
    in managed transactions.
  * Some tests never reset the transaction state of the used connection.
  * And some additional less important changes.

This commit has some potential for regressions, but as the above list
shows, the current situation isn't perfect either.
2013-02-27 17:54:27 +02:00
..
__init__.py Added postgresql_psycopg2 backend, which is untested, just for a starting point 2006-05-16 23:27:07 +00:00
base.py Fixed #19861 -- Transaction ._dirty flag improvement 2013-02-27 17:54:27 +02:00
client.py Deprecated the psycopg-based postgresql database backend. 2011-04-02 08:39:08 +00:00
creation.py Fixed #19861 -- Transaction ._dirty flag improvement 2013-02-27 17:54:27 +02:00
introspection.py Fixed #17574 -- Implemented missing get_key_columns in PostgreSQL backend 2013-01-12 21:46:08 +01:00
operations.py Ensured a connection is established when checking the database version. 2013-02-19 10:51:24 +01:00
version.py Fixed #11065, #11285 -- Streamlined PostgreSQL version detection, fixing incompatibility with multi-db. Thanks findepi for the report. 2011-06-19 18:00:09 +00:00