Branch: refs/heads/master Home: https://github.com/django/django Commit: 50328f0a618674b7143d86acaa7016c5293e9774 https://github.com/django/django/commit/50328f0a618674b7143d86acaa7016c5293e9774 Author: Anssi Kääriäinen <akaar...@gmail.com> Date: 2013-02-27 (Wed, 27 Feb 2013)
Changed paths: M django/db/backends/__init__.py M django/db/backends/creation.py M django/db/backends/postgresql_psycopg2/base.py M django/db/backends/postgresql_psycopg2/creation.py M django/db/backends/util.py M django/db/models/sql/compiler.py M docs/ref/models/querysets.txt M tests/delete_regress/tests.py M tests/middleware/tests.py M tests/select_for_update/tests.py M tests/transactions/tests.py M tests/transactions_regress/tests.py Log Message: ----------- 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. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.