summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2017-01-17Refs #19738 -- Removed timezone conversion in SQL queries executed outside ↵Tim Graham
of the ORM. Per deprecation timeline.
2017-01-17Refs #24215 -- Removed add_lazy_relation() per deprecation timeline.Tim Graham
2017-01-17Refs #21127 -- Required on_delete for ForeignKey/OneToOneField.Tim Graham
Per deprecation timeline.
2017-01-17Removed Field.rel and Field.remote_field.to per deprecation timeline.Tim Graham
2017-01-17Refs #24154 -- Removed deprecated ↵Tim Graham
BaseDatabaseOperations.check_aggregate_support().
2017-01-17Refs #24205 -- Removed Signal.disconnect()'s weak argument.Tim Graham
Per deprecation timeline.
2017-01-17Refs #27683 -- Allowed setting isolation level in DATABASES ['OPTIONS'] on ↵Tim Graham
MySQL.
2017-01-17Refs #27666 -- Added ProjectState.reload_models().Markus Holtermann
2017-01-17Fixed #27666 -- Delayed rendering of recursivly related models in migration ↵Markus Holtermann
operations.
2017-01-16Refs #27690 -- Removed sleep before drop test db on Oracle.Mariusz Felisiak
2017-01-16Refs #25809 -- Made a few late review comments for BrinIndex.Mads Jensen
2017-01-16Moved unneeded ImproperlyConfigured inner imports.Tim Graham
2017-01-16Fixed #25307 -- Fixed QuerySet.annotate() crash with conditional expressions.Josh Smeaton
Thanks Travis Newport for the tests and Josh Smeaton for contributing to the patch.
2017-01-16Fixed #27736 -- Used decorators for lookup registration.Mads Jensen
2017-01-16Refs #16614 -- Called _prepare_cursor() on every created cursor.François Freitag
2017-01-15Fixed #25809 -- Added BrinIndex support in django.contrib.postgres.Mads Jensen
Thanks Tim Graham and Markus Holtermann for review.
2017-01-14Fixed #27149 -- Added Subquery and Exists database expressions.Matthew Schinckel
Thanks Josh Smeaton for Oracle fixes.
2017-01-14Fixed #27718 -- Added QuerySet.union(), intersection(), difference().Florian Apolloner
Thanks Mariusz Felisiak for review and Oracle assistance. Thanks Tim Graham for review and writing docs.
2017-01-14Refs #16614 -- Prevented database errors from being masked by cursor close.François Freitag
When an error occurred during the cursor.execute statement, the cursor is closed. This operation did not fail with client-side cursors. Now, with server-side cursors, the close operation might fail (example below). The original error should be raised, not the one raised by cursor.close(), this is only clean-up code. For example, one can attempt to create a named cursor for an invalid query. psycopg will raise an error about the invalid query and the server-side cursor will not be created on PostgreSQL. When the code attempts to cursor.close(), it asks psycopg to close a cursor that was not created. pyscopg raises a new error: psycopg2.OperationalError: cursor "_django_curs_140365867840512_20" does not exist.
2017-01-13Refs #20483 -- Implemented cascaded flush on Oracle.Simon Charette
The initial implementation added support for PostgreSQL but it is also required on Oracle (13b7f299de79e3eb101c3f015386eba39a8f3928). Thanks Mariusz Felisiak for the foreign key retreival queries.
2017-01-11Refs #16614 -- Made QuerySet.iterator() use server-side cursors on PostgreSQL.François Freitag
Thanks to Josh Smeaton for the idea of implementing server-side cursors in PostgreSQL from the iterator method, and Anssi Kääriäinen and Kevin Turner for their previous work. Also Simon Charette and Tim Graham for review.
2017-01-10Fixed #27717 -- Allowed migration optimization across AlterModelOptions.Ed Morley
2017-01-06Fixed #27690 -- Removed time.sleep(1) before dropping the test database.David Szotten
Uncertain if this is needed, but no failures have appeared so far.
2017-01-03Fixed #25912 -- Added binary left/right shift operators to F expressions.anabelensc
Thanks Mariusz Felisiak for review and MySQL advice.
2017-01-03Fixed #27681 -- Fixed binary &/| operators for negative values on MySQL.Mariusz Felisiak
2017-01-01Refs #27632 -- Simplified params dict creation for Oracle (#7772)Josh Smeaton
2016-12-30Fixed #27458 -- Fixed invalid sequence/index names when using "USER"."TABLE" ↵Andrew Nester
db_table on Oracle.
2016-12-29Fixed #27615 -- Used timedeltas as arguments to Oracle database driver.Mariusz Felisiak
Removed unused DatabaseFeatures.driver_supports_timedeltas workaround.
2016-12-29Fixed #27649 -- Bumped required cx_Oracle to 5.2.Tim Graham
Removed obsolete workarounds from 1aa48898085ea16915877cc139e238a74e3f554b and dcf3be7a621f011a918453527406216a738acf68.
2016-12-29Refs #25415 -- Made MySQL backend skip field validation of unsupported models.Adam Chainz
2016-12-29Removed unused enumerate.Florian Apolloner
2016-12-28Fixed #27631 -- Prevented execution of transactional DDL statements when ↵Simon Charette
unsupported. Executing a DDL statement during a transaction on backends that don't support it silently commits, leaving atomic() in an incoherent state. While schema_editor.execute() could technically be used to execute DML statements such usage should be uncommon as these are usually performed through the ORM. In other cases schema_editor.connection.execute() can be used to circumvent this check. Thanks Adam and Tim for the review.
2016-12-28Refs #27632 -- Unified query parameters by their types and values on Oracle.Mariusz Felisiak
Fixed Python 2 regression in 6dbe56ed7855f34585884a2381fb1cec22ddc824. Thanks Simon Charette for the implementation idea.
2016-12-28Fixed #27651 -- Allowed M2M to concrete and proxy through model.Tim Graham
2016-12-28Fixed #27632 -- Unified query parameters by their values on Oracle.Mariusz Felisiak
2016-12-24Fixed #25492 -- Checked deferred foreign key constraints before dropping them.Simon Charette
This allows running foreign key data and schema altering operations in the same migration on PostgreSQL. Thanks Tim for review.
2016-12-24Fixed #27498 -- Fixed filtering on annotated DecimalField on SQLite.Peter Inglesby
2016-12-23Used @cached_property in RawQuerySet.Adam Chainz
2016-12-23Refs #27624 -- Made QuerySet._prefetch_related_lookups immutable.Adam Chainz
2016-12-23Refs #18823 -- Corrected field name in an m2m manager error message.Andrey Kuzminov
2016-12-20Removed unneeded values in NullBooleanField.formfield().Tim Graham
These values are duplicated in the super().
2016-12-19Refs #19884 -- Removed DatabaseFeatures.can_introspect_max_length.Mariusz Felisiak
Unused (always True) after 3e43d24ad36d45cace57e6a7efd34638577ae744.
2016-12-19Refs #19884 -- Added CharField max_length introspection on Oracle.Mariusz Felisiak
2016-12-15Optimized Model instantiation a bit.Adam Chainz
* Avoid some unnecessary attribute lookups, e.g. access signals directly rather than from module * Alias some repeat accesses inside the method to use the slightly faster local lookups * Use tuple to iterate remaining kwargs as it's faster to construct * Cache Field.get_default() to avoid running through all the logic on every call * Use a cached list of the properties on the model class to avoid repeat isinstance() calls
2016-12-14Fixed #27599 -- Fixed Field.__str__() crash for fields not attached to models.Morgan Aubert
2016-12-14Fixed #27594 -- Fixed select_related() with reverse self-referential ↵Daniel Hillier
OneToOneField. Fixed definition of `klass_info['from_parent']` so that two models aren't considered from a parent class if the model classes are the same.
2016-12-10Fixed #27310 -- Stopped rendering apps in RenameModel.state_forwards.Simon Charette
Thanks Tim for the review.
2016-12-08Fixed #13312 -- Allowed specifying the order of null fields in queries.Yohann Gabory
Thanks Mariusz Felisiak for finishing the patch.
2016-12-07Fixed #17002 -- Allowed using a ManyToManyField through model that inherits ↵InvalidInterrupt
another.
2016-12-07Fixed #25708 -- Fixed annotations with geometry values.Sergey Fedoseev