summaryrefslogtreecommitdiff
path: root/django/db/backends
AgeCommit message (Collapse)Author
2018-03-12Removed unused variable in BaseDatabaseSchemaEditor.effective_default().Дилян Палаузов
2018-03-01Refs #28459 -- Improved performance of time difference expressions on MySQL.Sergey Fedoseev
2018-02-26Refs #28909 -- Simplifed code using unpacking generalizations.Mariusz Felisiak
2018-02-10Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields).Matthew Wilkes
2018-02-07Renamed the allow_sliced_subqueries database feature to ↵Mariusz Felisiak
allow_sliced_subqueries_with_in. After 0899d583bdb140910698d00d17f5f1abc8774b07 this database feature is false only on MySQL which doesn't support sliced subqueries only with IN/ALL/ANY/SOME.
2018-01-31Removed uneeded comment in DatabaseWrapper.check_constraints() on ↵Mariusz Felisiak
SQLite/MySQL backends.
2018-01-27Fixed #29004 -- Added inspectdb --include-views option.bquinn
2018-01-27Fixed #28650 -- Added TruncWeek database function.Sigurd Ljødal
2018-01-13Fixed #28542 -- Fixed deletion of primary key constraint if the new field is ↵Tim Martin
unique.
2018-01-12Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов
continue statements.
2018-01-09Added DatabaseFeatures.is_postgresql_9_5 to avoid repetition.Tim Graham
2018-01-06Fixed #28859 -- Made Oracle backend raise DatabaseError if "no data found" ↵Mariusz Felisiak
exception is hidden by the Oracle OCI library. Thanks Tim Graham for the review and Jani Tiainen for the report.
2018-01-04Refs #28459 -- Improved performance of duration expressions on SQLite.Sergey Fedoseev
2018-01-03Fixed #28982 -- Simplified code with and/or.Дилян Палаузов
2017-12-30Used Decimal.scaleb() in backends.utils.format_number() and ↵Mariusz Felisiak
DecimalField.widget_attrs() to improve performance.
2017-12-29Bumped minimum supported mysqlclient version to 1.3.7.Sergey Fedoseev
Follow up to ad9390bba27cb41da92f734db4d0e36ef3dfc58f.
2017-12-29Refs #28459 -- Used default date converter on SQLite for better performance.Sergey Fedoseev
See https://docs.python.org/3/library/sqlite3.html#default-adapters-and-converters.
2017-12-28Fixed #28926 -- Fixed loss of precision of big DurationField values on ↵Sergey Fedoseev
SQLite and MySQL.
2017-12-27Fixed #28967 -- Prevented Cast to FloatField from rounding to integer on MySQL.Sergey Fedoseev
2017-12-27Refs #28459 -- Improved performance of loading DurationField on SQLite and ↵Sergey Fedoseev
MySQL.
2017-12-26Refs #28459 -- Improved performance of loading DecimalField on SQLite.Sergey Fedoseev
2017-12-22Fixed #28884 -- Fixed crash on SQLite when renaming a field in a model ↵Simon Charette
referenced by a ManyToManyField. Introspected database constraints instead of relying on _meta.related_objects to determine whether or not a table or a column is referenced on rename operations. This has the side effect of ignoring both db_constraint=False and virtual fields such as GenericRelation which aren't backend by database level constraints and thus shouldn't prevent the rename operations from being performed in a transaction. Regression in 095c1aaa898bed40568009db836aa8434f1b983d. Thanks Tim for the additional tests and edits, and Mariusz for the review.
2017-12-21Refs #28909 -- Simplifed code using unpacking generalizations.Nick Pope
2017-12-21Refs #23941 -- Prevented incorrect rounding of DecimalField annotations on ↵Sergey Fedoseev
SQLite.
2017-12-20Fixed #28932 -- Prevented Oracle from truncating trailing zeros in the ↵Sergey Fedoseev
fractional part of DecimalField. Fixes the test added in 6fd6d8383f48ea2fe4e058725fa30529a083e9a5. Regression in 7c1f3901bcdabb1340a621e7df9b24f3acd0d6f3.
2017-12-20Fixed #28934 -- Prevented Cast from truncating microseconds on Oracle.Mariusz Felisiak
2017-12-19Fixed #28727 -- Fixed Cast crash on SQLite when casting a Python ↵Mariusz Felisiak
date/datetime to Date/DateTimeField.
2017-12-16Removed unused DatabaseOperations.date_interval_sql() on Oracle.Sergey Fedoseev
Unused since 5ca82e710e2f92b8c5114492205c8764918407d3.
2017-12-12Fixed #28915 -- Prevented SQLite from truncating trailing zeros in the ↵Sergey Fedoseev
fractional part of DecimalField. This reverts commit a146b65628e702a9a3ed5be21542ca45366fbb29 and adds a test for the regression.
2017-12-12Simplified SQLite converter for bool type.Sergey Fedoseev
2017-12-11Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope
2017-12-08Improved performance of loading DateTimeField on Oracle and MySQL.Sergey Fedoseev
2017-12-05Refs #28876 -- Fixed incorrect foreign key constraint name for models with ↵Mariusz Felisiak
quoted db_table. Thanks Simon Charette and Tim Graham for the review and Carlos E. C. Leite for the report.
2017-12-04Fixed #28860 -- Removed unnecessary len() calls.Дилян Палаузов
2017-12-01Fixed #28849 -- Fixed referenced table and column rename on SQLite.Simon Charette
Thanks Ramiro for the input and Tim for the review.
2017-12-01Fixed #28305 -- Fixed "Cannot change column 'x': used in a foreign key ↵Tim Graham
constraint" crash on MySQL with a sequence of AlterField or RenameField operations. Regression in 45ded053b1f4320284aa5dac63052f6d1baefea9.
2017-11-29Fixed #28702 -- Made query lookups for CIText fields use citext.Mads Jensen
2017-11-28Fixed #28853 -- Updated connection.cursor() uses to use a context manager.Jon Dufresne
2017-11-28Fixed #28854 -- Replaced type(True) with bool in sqlite's SchemaEditor.Дилян Палаузов
2017-11-26Refs #27954 -- Fixed typo in django/db/backends/postgresql/client.py comment.Mariusz Felisiak
2017-11-23Used bytes.hex() and bytes.fromhex() to simplify.Sergey Fedoseev
2017-11-20Fixed #28804 -- Fixed "Unknown system variable 'transaction_isolation'" on ↵Tim Graham
MariaDB. Regression in 967450a3bf940c43db891fe1e2ef3bcf73456ff8.
2017-11-14Fixed #28792 -- Fixed index name truncation of namespaced tables.Simon Charette
Refs #27458, #27843. Thanks Tim and Mariusz for the review.
2017-11-14Fixed #28794 -- Fixed tx_isolation deprecation warning on MySQL 5.7.20+.Sergey Fedoseev
2017-11-07Fixed #28769 -- Replaced 'x if x else y' with 'x or y'.Дилян Палаузов
2017-11-03Clarified error message for when sqlplarse isn't installed.Nick
2017-10-09Fixed #28670 -- Added FETCH/OFFSET support on Oracle.Mariusz Felisiak
Thanks Tim Graham for the review.
2017-10-06Fixed #28665 -- Change some database exceptions to NotImplementedError per ↵Simon Charette
PEP 249.
2017-10-05Fixed #28596 -- Fixed QuerySet.bulk_create() and cascade deletion crash on ↵Mariusz Felisiak
Oracle when using more than 65535 parameters. Thanks Tim Graham for the review.
2017-10-04Refs #28670 -- Moved LIMIT/OFFSET SQL to DatabaseOperations.limit_offset_sql().Mariusz Felisiak
Thanks Tim Graham for the review.