summaryrefslogtreecommitdiff
path: root/django/db/backends/base/operations.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Refs #27795 -- Replaced many force_text() with str()Claude Paroz2017-04-271-1/+1
| | | | Thanks Tim Graham for the review.
* Refs #27656 -- Updated django.db docstring verbs according to PEP 257.Anton Samarchyan2017-02-281-98/+89
|
* Refs #27802 -- Corrected BaseDatabaseOperations.datetime_extract/trunc_sql() ↵Tim Graham2017-02-271-8/+7
| | | | docstrings.
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-1/+1
|
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-9/+9
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #26285 -- Removed MySQL __search lookup per deprecation timeline.Tim Graham2017-01-171-9/+0
|
* Refs #24154 -- Removed deprecated ↵Tim Graham2017-01-171-9/+0
| | | | BaseDatabaseOperations.check_aggregate_support().
* Fixed #27718 -- Added QuerySet.union(), intersection(), difference().Florian Apolloner2017-01-141-0/+5
| | | | Thanks Mariusz Felisiak for review and Oracle assistance. Thanks Tim Graham for review and writing docs.
* Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.Tim Graham2016-09-171-1/+1
| | | | http://bugs.python.org/issue27364
* Fixed #26500 -- Added SKIP LOCKED support to select_for_update().Simon Charette2016-08-081-1/+3
| | | | Thanks Tim for the review.
* Fixed #26950 -- Removed obsolete DatabaseOperations SQL methods.Anderson Resende2016-07-271-13/+0
| | | Unused as of 2b039d966f6e61a5ffb5ffac25aa198f9043de3d.
* Fixed #26348 -- Added TruncTime and exposed it through the __time lookup.Simon Charette2016-07-081-0/+6
| | | | Thanks Tim for the review.
* Refs #25774, #26348 -- Allowed Trunc functions to operate with time fields.Simon Charette2016-07-081-0/+8
| | | | Thanks Josh for the amazing testing setup and Tim for the review.
* Normalized "an SQL" spelling.Ville Skyttä2016-05-031-2/+2
|
* Fixed #26557 -- Converted empty strings to None when saving ↵Joshua Phillips2016-04-291-1/+1
| | | | GenericIPAddressField.
* Fixed #26140 -- Suppressed MySQL warning when inserting binary contentClaude Paroz2016-03-141-0/+7
| | | | Thanks Tim Graham for the review.
* Fixed #26285 -- Deprecated the MySQL-specific __search lookup.Marc Tamlyn2016-03-021-0/+1
|
* Fixed #24793 -- Unified temporal difference support.Simon Charette2016-02-261-0/+7
|
* Fixed #26219 -- Fixed crash when filtering by Decimal in RawQuery.Akshesh2016-02-171-1/+1
|
* Fixed #26125 -- Fixed E731 flake warnings.userimack2016-01-251-1/+2
|
* Added missing period to "etc.".pp2016-01-111-1/+1
|
* Fixed #24509 -- Added Expression support to SQLInsertCompilerAlex Hill2015-09-221-1/+1
|
* Removed datetime_cast_sql, which is never overridden or used anywhere in Django.Shai Berger2015-07-011-9/+0
| | | | Thanks Tim Graham for review.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-2/+2
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #22316 -- Added time filters to TimeField on SQLite.Matthew Somerville2015-06-041-0/+7
| | | | | This was implemented for non-SQLite backends in 1.7 (as a side effect of #16187).
* Fixed #9596 -- Added date transform for DateTimeField.Jon Dufresne2015-06-021-0/+6
|
* Renamed value_to_db_xxx to adapt_xxxfield_value.Aymeric Augustin2015-05-171-14/+14
| | | | | This mirrors convert_xxxfield_value nicely, taking advantage of the adapter/converter terminology which is commonly used by DB-API modules.
* Removed global timezone-aware datetime adapters.Aymeric Augustin2015-05-171-0/+23
| | | | | | | | | | Refs #23820. Fixed #19738. Refs #17755. In order not to introduce a regression for raw queries, parameters are passed through the connection.ops.value_to_db_* methods, depending on their type.
* Normalized the implementation of get_db_converters.Aymeric Augustin2015-05-171-2/+3
| | | | Put the types in the same order and checked for None consistently.
* Fixed signature of BaseDatabaseOperations.date_interval_sql() and document ↵Michael Manfre2015-02-221-1/+1
| | | | the change.
* Update converters to take a consistent set of parameters.Marc Tamlyn2015-02-201-1/+1
| | | | | | As suggested by Anssi. This has the slightly strange side effect of passing the expression to Expression.convert_value has the expression passed back to it, but it allows more complex patterns of expressions.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+1
|
* Fixed #24154 -- Backends can now check support for expressionsJosh Smeaton2015-01-271-5/+15
|
* Required sqlparse for SQL splitting per deprecation timeline.Tim Graham2015-01-171-15/+6
|
* Fixed #24092 -- Widened base field support for ArrayField.Marc Tamlyn2015-01-161-5/+12
| | | | | | | | | | | | | | | | | | | | | | Several issues resolved here, following from a report that a base_field of GenericIpAddressField was failing. We were using get_prep_value instead of get_db_prep_value in ArrayField which was bypassing any extra modifications to the value being made in the base field's get_db_prep_value. Changing this broke datetime support, so the postgres backend has gained the relevant operation methods to send dates/times/datetimes directly to the db backend instead of casting them to strings. Similarly, a new database feature has been added allowing the uuid to be passed directly to the backend, as we do with timedeltas. On the other side, psycopg2 expects an Inet() instance for IP address fields, so we add a value_to_db_ipaddress method to wrap the strings on postgres. We also have to manually add a database adapter to psycopg2, as we do not wish to use the built in adapter which would turn everything into Inet() instances. Thanks to smclenithan for the report.
* Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham2015-01-141-0/+555