| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2013-03-11 | Avoided closing the database connection within a transaction. | Aymeric Augustin | |
| Refs #9437. | |||
| 2013-03-11 | Adjusted query counts to account for new savepoints. | Aymeric Augustin | |
| 2013-03-11 | Ported layermapping for autocommit. | Aymeric Augustin | |
| 2013-03-11 | Switched the admin to use @transaction.atomic. | Aymeric Augustin | |
| 2013-03-11 | Ran a test that closes the database connection outside of a transaction. | Aymeric Augustin | |
| 2013-03-11 | Removed forced settings in runtests | Claude Paroz | |
| Tests that require USE_I18N, LOGIN_URL or certain MIDDLEWARE_CLASSES should be decorated appropriately. | |||
| 2013-03-11 | Fixed loaddata command, broken in the previous merge. | Aymeric Augustin | |
| 2013-03-11 | Merged branch 'database-level-autocommit'. | Aymeric Augustin | |
| Fixed #2227: `atomic` supports nesting. Fixed #6623: `commit_manually` is deprecated and `atomic` doesn't suffer from this defect. Fixed #8320: the problem wasn't identified, but the legacy transaction management is deprecated. Fixed #10744: the problem wasn't identified, but the legacy transaction management is deprecated. Fixed #10813: since autocommit is enabled, it isn't necessary to rollback after errors any more. Fixed #13742: savepoints are now implemented for SQLite. Fixed #13870: transaction management in long running processes isn't a problem any more, and it's documented. Fixed #14970: while it digresses on transaction management, this ticket essentially asks for autocommit on PostgreSQL. Fixed #15694: `atomic` supports nesting. Fixed #17887: autocommit makes it impossible for a connection to stay "idle of transaction". | |||
| 2013-03-11 | Improved the API of set_autocommit. | Aymeric Augustin | |
| 2013-03-11 | Abused atomic for transaction handling in TestCase. | Aymeric Augustin | |
| It isn't necessary to disable set_autocommit since its use is prohibited inside an atomic block. It's still necessary to disable the legacy transaction management methods for backwards compatibility, until they're removed. | |||
| 2013-03-11 | Used commit_on_success_unless_managed in loaddata. | Aymeric Augustin | |
| 2013-03-11 | Used commit_on_success_unless_managed to make ORM operations atomic. | Aymeric Augustin | |
| 2013-03-11 | Removed a test that no longer makes any sense. | Aymeric Augustin | |
| Since unmanaged == autocommit, there's nothing to commit or roll back. | |||
| 2013-03-11 | Updated a test that doesn't make sense with autocommit. | Aymeric Augustin | |
| 2013-03-11 | Added a safety net for developers messing with autocommit. | Aymeric Augustin | |
| 2013-03-11 | Added an option to disable the creation of savepoints in atomic. | Aymeric Augustin | |
| 2013-03-11 | Added a note about long-running processes. | Aymeric Augustin | |
| There isn't much else to say, really. | |||
| 2013-03-11 | Added an explanation of transactions and grouped low-level APIs. | Aymeric Augustin | |
| 2013-03-11 | Updated the documentation for savepoints. | Aymeric Augustin | |
| Apparently django.db.transaction used to be an object. | |||
| 2013-03-11 | Re-ordered functions by deprecation status. | Aymeric Augustin | |
| 2013-03-11 | Deprecated TransactionMiddleware and TRANSACTIONS_MANAGED. | Aymeric Augustin | |
| Replaced them with per-database options, for proper multi-db support. Also toned down the recommendation to tie transactions to HTTP requests. Thanks Jeremy for sharing his experience. | |||
| 2013-03-11 | Implemented atomic_if_autocommit. | Aymeric Augustin | |
| It disables transaction management entirely when AUTOCOMMIT is False. | |||
| 2013-03-11 | Made transaction management work even before the first SQL query. | Aymeric Augustin | |
| Thanks Florian again. | |||
| 2013-03-11 | Added some assertions to enforce the atomicity of atomic. | Aymeric Augustin | |
| 2013-03-11 | Implemented an 'atomic' decorator and context manager. | Aymeric Augustin | |
| Currently it only works in autocommit mode. Based on @xact by Christophe Pettus. | |||
| 2013-03-11 | Added support for savepoints in SQLite. | Aymeric Augustin | |
| Technically speaking they aren't usable yet. | |||
| 2013-03-11 | Refactored implementation of savepoints. | Aymeric Augustin | |
| Prepared for using savepoints within transactions in autocommit mode. | |||
| 2013-03-11 | Moved standard SQL for savepoints in the base backend. | Aymeric Augustin | |
| These methods are only called when uses_savepoints = True anyway. | |||
| 2013-03-11 | Deprecated transaction.is_managed(). | Aymeric Augustin | |
| It's synchronized with the autocommit flag. | |||
| 2013-03-11 | Deprecated transaction.commit/rollback_unless_managed. | Aymeric Augustin | |
| Since "unless managed" now means "if database-level autocommit", committing or rolling back doesn't have any effect. Restored transactional integrity in a few places that relied on automatically-started transactions with a transitory API. | |||
| 2013-03-11 | Removed superfluous code now that connections use autocommit by default. | Aymeric Augustin | |
| 2013-03-11 | Enabled database-level autocommit for all backends. | Aymeric Augustin | |
| This is mostly a documentation change. It has the same backwards-incompatibility consequences as those described for PostgreSQL in a previous commit. | |||
| 2013-03-11 | Removed _enter/_leave_transaction_management. | Aymeric Augustin | |
| The goal is to make all databases share a common, autocommit-based, implementation. | |||
| 2013-03-11 | Added BaseDatabaseWrapper.ensure_connection. | Aymeric Augustin | |
| This API is useful because autocommit cannot be managed without an open connection. | |||
| 2013-03-11 | Expressed the dirty flag handling logic in terms of autocommit. | Aymeric Augustin | |
| 2013-03-11 | Stopped flipping the uses_savepoints feature at runtime. | Aymeric Augustin | |
| 2013-03-11 | Enabled autocommit for PostgreSQL. | Aymeric Augustin | |
| For users who didn't activate autocommit in their database options, this is backwards-incompatible in "non-managed" aka "auto" transaction state. This state now uses database-level autocommit instead of ORM-level autocommit. Also removed the uses_autocommit feature which lost its purpose. | |||
| 2013-03-11 | Separated autocommit and isolation level handling for PostgreSQL. | Aymeric Augustin | |
| Autocommit cannot be manipulated independently from an open connection. This commit introduces a minor change in behavior: entering transaction management forces opening a databasse connection. This shouldn't be backwards incompatible in any practical use case. | |||
| 2013-03-11 | Added an API to control database-level autocommit. | Aymeric Augustin | |
| 2013-03-11 | Made transaction.managed a no-op and deprecated it. | Aymeric Augustin | |
| enter_transaction_management() was nearly always followed by managed(). In three places it wasn't, but they will all be refactored eventually. The "forced" keyword argument avoids introducing behavior changes until then. This is mostly backwards-compatible, except, of course, for managed itself. There's a minor difference in _enter_transaction_management: the top self.transaction_state now contains the new 'managed' state rather than the previous one. Django doesn't access self.transaction_state in _enter_transaction_management. | |||
| 2013-03-11 | Moved a warning in the 1.6 notes back to its expected location. | Aymeric Augustin | |
| 2013-03-10 | Fixed #20019 -- Ensured HttpRequest.resolver_match always exists. | Aymeric Augustin | |
| Obviously it isn't set until the URL is resolved. | |||
| 2013-03-10 | Made (make|compile)messages check for availability of gettext commands. | Ramiro Morales | |
| Refs #19584. | |||
| 2013-03-10 | Merge pull request #892 from JonLoy/ticket_20018 | Alex Gaynor | |
| Fixed #20018: Added backtick to fix reference | |||
| 2013-03-10 | Fixed #20018: Added backtick to fix reference | Jonathan Loy | |
| Fixed #20018 | |||
| 2013-03-10 | Fixed #20008 -- Removed trailing slash in Wikipedia link | Claude Paroz | |
| Thanks senden9 at gmail.com for the report. | |||
| 2013-03-09 | Fixed BinaryField support on Oracle. | Florian Apolloner | |
| 2013-03-09 | Fixed #19171 -- Allowed coordinate transforms with custom SRIDs | Claude Paroz | |
| Thanks reidpr at lanl.gov for the report. | |||
| 2013-03-09 | Fixed #9806 -- Allowed editing GeometryField with OpenLayersWidget | Claude Paroz | |
| Thanks Paul Winkler for the initial patch. | |||
| 2013-03-09 | Reformatted slightly openlayers.js | Claude Paroz | |
