summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2017-05-25Fixed #28211 -- Prevented ORing an empty Q() from reducing query join ↵Tom
efficiency.
2017-05-24Fixed #27860 -- Dropped varchar_pattern_ops/text_pattern_ops index before ↵Mariusz Felisiak
altering char/text field in PostgreSQL. Thanks Tim Graham for the review.
2017-05-23Fixed #27859 -- Ignored db_index for TextField/BinaryField on Oracle and MySQL.Mariusz Felisiak
Thanks Zubair Alam for the initial patch and Tim Graham for the review.
2017-05-23Refs #27859 -- Added DatabaseWrapper.display_name.Mariusz Felisiak
Thanks Tim Graham for the review.
2017-05-19Fixed #28210 -- Fixed Model._state.adding on MTI parent model after saving ↵Tim Graham
child model. Regression in 38575b007a722d6af510ea46d46393a4cda9ca29.
2017-05-18Fixed #28206 -- Fixed RawQuerySet crash on a model with a mixed case ↵Mariusz Felisiak
db_column pk on Oracle. Thanks Tim Graham for the review.
2017-05-18Fixed #28152 -- Made migrations serialize sets as set literals rather than ↵Jon Dufresne
set().
2017-05-15Fixed #28197 -- Fixed introspection of index field ordering on PostgreSQL.Tim Schneider
2017-05-14Refs #27859 -- Refactored BaseDatabaseValidation to use check_field_type().Mariusz Felisiak
Thanks Tim Graham for the review.
2017-05-11Fixed #24254 -- Fixed queries using the __in lookup with querysets using ↵Simon Charette
distinct() and order_by(). Thanks Tim for the review.
2017-05-11Fixed #28188 -- Fixed crash when pickling model fields.Tim Graham
Regression in d2a26c1a90e837777dabdf3d67ceec4d2a70fb86. Thanks Adam Alton for the report and test, and Adam Johnson for suggesting the fix.
2017-05-11Fixed #28107 -- Disabled grouping of selected primary keys for unmanaged models.Simon Charette
The grouping caused an issue with database views as PostgreSQL's query planer isn't smart enough to introspect primary keys through views. Django doesn't support database views but documents that unmanaged models should be used to query them. Thanks powderflask for the detailed report and investigation.
2017-05-09Pass type to sql_alter_column_* where it was missing.Florian Apolloner
This is a followup to 2b3a9414570af623853ca0f819c7d77d0511f22c
2017-05-09Fixed #28164 -- Improved float conversions in DecimalField.to_pythonClaude Paroz
Thanks Tim Graham and Adam Johnson for the reviews.
2017-05-06Fixed #28062 -- Added a setting to disable server-side cursors on PostgreSQL.François Freitag
When a connection pooler is set up in transaction pooling mode, queries relying on server-side cursors fail. The DISABLE_SERVER_SIDE_CURSORS setting in DATABASES disables server-side cursors for this use case.
2017-05-05Fixed #28175 -- Fixed __in lookups on a foreign key when using the foreign ↵Tim Graham
key's parent model as the lookup value. Thanks Simon Charette for review.
2017-05-04Fixed #27554 -- Fixed prefetch_related() crash when fetching relations in ↵François Freitag
nested Prefetches.
2017-05-03Fixed #28166 -- Fixed Model._state.db on MTI parent model after saving child ↵Tim Graham
model. Regression in 38575b007a722d6af510ea46d46393a4cda9ca29.
2017-05-01Fixed typo in django/db/backends/base/schema.py comment.Tim Graham
2017-05-01Fixed #28052 -- Prevented dropping Meta.indexes when changing db_index to False.Markus Holtermann
Thanks Marc Tamlyn for the report and Ian Foote/Tim Graham for review.
2017-05-01Fixed #28043 -- Prevented AddIndex and RemoveIndex from mutating model state.Ian Foote
2017-05-01Refs #16187 -- Stopped compiling query compilers during lookup rhs processing.Simon Charette
Lookup right hand side processing was compiling query compilers which happened to work by chance as SQLCompiler defines a as_sql() method with two optional parameters albeit it doesn't expect the same type of arguments.
2017-04-28Fixed #28138 -- Used ​output type handler instead of numbersAsStrings on ↵Mariusz Felisiak
Oracle ​cursor. Thanks Tim Graham for the review.
2017-04-28Reverted "Refs #20939 -- Moved subquery ordering clearing optimization to ↵Simon Charette
the __in lookup." This reverts commit e62ea0bb9cbb54c1eef848871fe3eab2bad268dc since it broke multi-column __in lookups and _meta.order_wrt on Oracle.
2017-04-27Refs #20939 -- Moved subquery ordering clearing optimization to the __in lookup.Simon Charette
Queries could potentially be resolved in cases where ordering matter.
2017-04-27Fixed force_text() import in Oracle backend.Tim Graham
2017-04-27Replaced set |= operator with update() to avoid temporary set.Jon Dufresne
2017-04-27Refs #27795 -- Replaced many force_text() with str()Claude Paroz
Thanks Tim Graham for the review.
2017-04-25Refs #20939 -- Removed the Query._prepare_as_filter_value() hack.Simon Charette
2017-04-25Refs #20939 -- Removed the Query._forced_pk hack.Simon Charette
2017-04-25Refs #23919 -- Used "raise from" instead of __cause__ in reraising ↵Mariusz Felisiak
backend-specific database exceptions. Thanks Tim Graham for the review.
2017-04-25Fixed #28116 -- Used error code filtering in PostgreSQL test database creation.Mariusz Felisiak
Thanks Claude Paroz and Tim Graham for reviews.
2017-04-24Fixed #28120 -- Checked that CharField.max_length is not a boolean.Carles Pina Estany
2017-04-23Fixed #28101 -- Fixed a regression with nested __in subquery lookups and ↵Simon Charette
to_field. Thanks Kristian Klette for the report and Tim for the help.
2017-04-21Updated Oracle docs links to Oracle 12c.Mariusz Felisiak
2017-04-19Fixed #28096 -- Allowed prefetch calls with ModelIterable subclassesClaude Paroz
Regression in 7ec330eeb96d0874949eacb8ed1bbb97e11807e1. Thanks Tim Graham for the review.
2017-04-19Fix a typo in django/db/transaction.pyHuang Zhiqiang
2017-04-18Removed unused DatabaseIntrospection._name_to_index() from Oracle backend.Mariusz Felisiak
Unused since its introduction in cac7675f247da325cb862a312804fe64845d1155.
2017-04-17Refs #27795 -- Removed unneeded force_text calls from the Oracle backend.Mariusz Felisiak
2017-04-13Refs #25406 -- Removed exception hiding in MySQL test database creation ↵Mariusz Felisiak
during --keepdb. Thanks Adam Johnson, Simon Charette and Tim Graham for reviews.
2017-04-10Fixed #26788 -- Fixed QuerySet.update() crash when updating a geometry to ↵Sergey Fedoseev
another one.
2017-04-10Fixed #25406 -- Removed exception hiding in PostgreSQL test database ↵Mariusz Felisiak
creation during --keepdb. Thanks Markus Holtermann and Tim Graham for reviews.
2017-04-10Used NotSupportedError instead of DatabaseError in SQLCompiler.as_sql().Mariusz Felisiak
2017-04-10Fixed #28047 -- Fixed QuerySet.filter() crash when it uses the name of a ↵Tim Graham
OneToOneField pk. Regression in 1bc249c2a67c24fcd28436c85388eff1d826e305.
2017-04-07Fixed #28038 -- Restored casting to text of builtin lookups on PostgreSQL.Simon Charette
Reverted 658f1e8 which broke code using __icontains's implicit cast to ::text on ArrayField. Thanks Peter J. Farrell for the report.
2017-04-07Fixed #28051 -- Made migrations respect Index's name argument.Markus Holtermann
Thanks Marc Tamlyn for the report and Tim Graham for the review.
2017-04-07Fixed #27777 -- Made File.open() work with the with statement (#8310)Ingo Klöcker
Fixed #27777 -- Made File.open() work with the with statement
2017-04-07Fixed #23147 -- Disabled a limit/offset on a query with select_for_update on ↵Mariusz Felisiak
Oracle. Thanks Shai Berger and Tim Graham for the reviews.
2017-04-03Refs #27834 -- Removed Value wrapping from StrIndex's substring param.Adam Johnson
2017-04-02Fixed #27928 -- Avoided SET/DROP DEFAULT unless a field changes from null to ↵Simon Charette
non-null. Thanks Christophe Pettus, Matteo Pietro Russo for reports and Tim for review.