django1/django/db/backends
Simon Charette efa1908f66 Refs #25367 -- Moved Oracle Exists() handling to contextual methods.
Oracle requires the EXISTS expression to be wrapped in a CASE WHEN in
the following cases.

1. When part of a SELECT clause.
2. When part of a ORDER BY clause.
3. When compared against another expression in the WHERE clause.

This commit moves the systematic CASE WHEN wrapping of Exists.as_oracle
to contextual .select_format, Lookup.as_oracle, and OrderBy.as_oracle
methods in order to avoid unnecessary wrapping.
2019-08-13 06:48:14 +02:00
..
base Refs #25367 -- Moved Oracle Exists() handling to contextual methods. 2019-08-13 06:48:14 +02:00
dummy Made DatabaseFeatures.uses_savepoints default to True. 2018-10-25 10:02:47 -04:00
mysql Fixed #30661 -- Added models.SmallAutoField. 2019-08-02 11:39:01 +02:00
oracle Refs #25367 -- Moved Oracle Exists() handling to contextual methods. 2019-08-13 06:48:14 +02:00
postgresql Fixed #30661 -- Added models.SmallAutoField. 2019-08-02 11:39:01 +02:00
sqlite3 Fixed #30661 -- Added models.SmallAutoField. 2019-08-02 11:39:01 +02:00
__init__.py Fixed #22603 -- Reorganized classes in django.db.backends. 2015-01-14 14:16:20 -05:00
ddl_references.py Fixed #28077 -- Added support for PostgreSQL opclasses in Index. 2018-06-29 17:00:28 -04:00
signals.py Fixed #13798 -- Added connection argument to the connection_created signal. Thanks to liangent for the report, and Alex Gaynor for the patch. 2010-08-30 13:21:18 +00:00
utils.py Used time.monotonic() instead of time.time() where applicable. 2019-05-08 18:34:22 +02:00