summaryrefslogtreecommitdiff
path: root/django/utils/_os.py
diff options
context:
space:
mode:
authorSimon Charette <simon.charette@zapier.com>2019-08-11 02:12:11 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-08-13 06:48:14 +0200
commitefa1908f662c19038a944129c81462485c4a9fe8 (patch)
treebb550ae7f55b366092cce3ea7ecf3d69c9baf43d /django/utils/_os.py
parentfff5186d3215e0ba06e47090226169f2230786b0 (diff)
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.
Diffstat (limited to 'django/utils/_os.py')
0 files changed, 0 insertions, 0 deletions