summaryrefslogtreecommitdiff
path: root/django/db/backends
AgeCommit message (Collapse)Author
2013-12-17Deborgified the app cache.Aymeric Augustin
Improved Andrew's hack to create temporary app caches to handle migrations. Now the main app cache has a "master" flag set to True (which is a non-default keyword argument, thus unlikely to be used by mistake). Other app cache instances have "master" set to False. The only sanctioned way to access the app cache is by importing django.core.apps.app_cache. If you were instanciating an app cache and relying on the Borg pattern, you'll have to refactor your code.
2013-12-17Moved the new app cache inside core.Aymeric Augustin
2013-12-17Made it possible to create apps without a models module.Aymeric Augustin
This commit reverts f44c4a5d0f and 39bbd165. django.test.simple will be updated in a separate commit as it requires invasive changes.
2013-12-17Deprecated get_apps().Aymeric Augustin
2013-12-17Removed module-level functions for the app cache.Aymeric Augustin
Since the original ones in django.db.models.loading were kept only for backwards compatibility, there's no need to recreate them. However, many internals of Django still relied on them. They were also imported in django.db.models. They never appear in the documentation, except a quick mention of get_models and get_app in the 1.2 release notes to document an edge case in GIS. I don't think that makes them a public API. This commit doesn't change the overall amount of global state but clarifies that it's tied to the app_cache object instead of hiding it behind half a dozen functions.
2013-12-17Moved django.db.models.loading to django.apps.cache.Aymeric Augustin
This commit doesn't contain any code changes; it's purely a refactoring.
2013-12-14Fixed E127 pep8 warnings.Loic Bistuer
2013-12-11Fix altering of SERIAL columns and InnoDB being picky about FK changesAndrew Godwin
2013-12-11Change FKs when what they point to changesAndrew Godwin
2013-12-11Fix sqlmigrate's output for parametersAndrew Godwin
2013-12-10Fixed E124 pep8 warnings.Loic Bistuer
2013-11-28Fixed E125 pep8 warningsChristopher Medrela
2013-11-27Add gis deconstruct() method (this does not make schema work)Andrew Godwin
2013-11-24Fixed #21497 -- Forced conversion to bytes for very long index namesJoel Bohman
2013-11-09flake8 fixAlex Gaynor
2013-11-09Don't initialize PostGIS-specific stuff for non-db connectionsClaude Paroz
Refs #16969.
2013-11-09Fixed #16969 -- Don't connect to named database when possibleClaude Paroz
Thanks Andreas Pelme for the report and initial patch, and Aymeric Augustin, Shai Berger and Tim Graham for the reviews.
2013-11-02Fixed all E261 warningscoagulant
2013-10-22Fixed #17027 -- Added support for the power operator in F expressions.Florian Hahn
Thanks dan at dlo.me for the initial patch. - Added __pow__ and __rpow__ to ExpressionNode - Added oracle and mysql specific power expressions - Added used-defined power function for sqlite
2013-10-22Removed import * in tests.Tim Graham
Thanks to flake8 path/to/file.py | awk -F ' ' '{ print $5 }' | sort | uniq
2013-10-17Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol
2013-10-17Remove some unnecesary uses of boolAlex Gaynor
2013-10-16Add get_migratable_models util method to ConnectionRouterClaude Paroz
2013-10-15Made sqlite introspection also show views like other backendsClaude Paroz
Refs #6730.
2013-10-15Moved misplaced import in backends initClaude Paroz
2013-10-14Fixed #15888 -- Made tablename argument of createcachetable optionalClaude Paroz
Thanks Aymeric Augustin for the report and the documentation and Tim Graham for the review.
2013-10-10Fixed "redefinition of unused 'foo' from line X" pyflakes warnings.Tim Graham
2013-10-07Fixed #21235 -- Disabled savepoints for old versions of SQLite.Aymeric Augustin
Thanks Ramiro for the report.
2013-10-05Fixed #21189: Cleaned up usage of bare except clauses.Baptiste Mispelon
Thanks to berkerpeksag for the report and to claudep for the review.
2013-10-01Fixed #21207 -- Fixed test failure on Oracle: test_cursor_contextmanagerTim Graham
refs #17671
2013-09-30Fixed #21134 -- Prevented queries in broken transactions.Aymeric Augustin
Squashed commit of the following: commit 63ddb271a44df389b2c302e421fc17b7f0529755 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Sep 29 22:51:00 2013 +0200 Clarified interactions between atomic and exceptions. commit 2899ec299228217c876ba3aa4024e523a41c8504 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Sep 22 22:45:32 2013 +0200 Fixed TransactionManagementError in tests. Previous commit introduced an additional check to prevent running queries in transactions that will be rolled back, which triggered a few failures in the tests. In practice using transaction.atomic instead of the low-level savepoint APIs was enough to fix the problems. commit 4a639b059ea80aeb78f7f160a7d4b9f609b9c238 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Tue Sep 24 22:24:17 2013 +0200 Allowed nesting constraint_checks_disabled inside atomic. Since MySQL handles transactions loosely, this isn't a problem. commit 2a4ab1cb6e83391ff7e25d08479e230ca564bfef Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Sep 21 18:43:12 2013 +0200 Prevented running queries in transactions that will be rolled back. This avoids a counter-intuitive behavior in an edge case on databases with non-atomic transaction semantics. It prevents using savepoint_rollback() inside an atomic block without calling set_rollback(False) first, which is backwards-incompatible in tests. Refs #21134. commit 8e3db393853c7ac64a445b66e57f3620a3fde7b0 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Sep 22 22:14:17 2013 +0200 Replaced manual savepoints by atomic blocks. This ensures the rollback flag is handled consistently in internal APIs.
2013-09-26Enforce ordering on PostgreSQL get_constraints cols (refs #21134)Andrew Godwin
2013-09-25Fixed #17671 - Cursors are now context managers.Michael Manfre
2013-09-25Fixed #21126 -- QuerySet value conversion failureAnssi Kääriäinen
A .annotate().select_related() query resulted in misaligned rows vs columns for compiler.resolve_columns() method. Report & patch by Michael Manfre.
2013-09-24Removed double import in mysql base.pyClaude Paroz
2013-09-17Fixed #21109 -- made db cursor error wrapping fasterAnssi Kääriäinen
2013-09-16Added backwards compatability shims for util modules.Tim Graham
refs #17627
2013-09-16Fixed #17627 -- Renamed util.py files to utils.pyTim Graham
Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
2013-09-14Merge branch 'master' of https://github.com/django/djangoAlex Gaynor
2013-09-14Removed an import * that was masking importing stuff from the wrong locationAlex Gaynor
2013-09-14Fixed #21097 - Added DatabaseFeature.can_introspect_autofieldMichael Manfre
2013-09-10Fixed #20841 -- Added messages to NotImplementedErrorsGregor MacGregor
Thanks joseph at vertstudios.com for the suggestion.
2013-09-09Fixed #20707 -- Added explicit quota assignment to Oracle test userСадовский Николай
To enable testing on Oracle 12c
2013-09-06Fixed a number of flake8 errors -- particularly around unused imports and ↵Alex Gaynor
local variables
2013-09-07Fixed regression introduced by efd1e60, 'map' returns an iterator on PY3.Loic Bistuer
2013-09-06Fixed #20007 -- Configured psycopg2 to return UnicodeArraysEric Boersma
Thanks hogbait for the report.
2013-09-06Adding 'sqlmigrate' command and quote_parameter to support it.Andrew Godwin
2013-09-06Fixed #10164 -- Made AutoField increase monotonically on SQLiteChris Wilson
Thanks malte for the report.
2013-09-06Fix SchemaEditor.__exit__ to handle exceptions correctlyAndrew Godwin
2013-09-05Fixed #21035 -- Changed docs to treat the acronym SQL phonetically.Eric Boersma
The documentation and comments now all use 'an' to refer to the word SQL and not 'a'.