mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Refs #33768 -- Fixed ordering compound queries by NULLs on SQLite < 3.30.
The lack of support for native nulls last/first on SQLite 3.28 and 3.29 requires the compound query to be wrapped for emulation layer to work properly.
This commit is contained in:
parent
2bc47d7fe9
commit
f47fec31f8
@ -41,6 +41,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||||||
supports_frame_range_fixed_distance = Database.sqlite_version_info >= (3, 28, 0)
|
supports_frame_range_fixed_distance = Database.sqlite_version_info >= (3, 28, 0)
|
||||||
supports_aggregate_filter_clause = Database.sqlite_version_info >= (3, 30, 1)
|
supports_aggregate_filter_clause = Database.sqlite_version_info >= (3, 30, 1)
|
||||||
supports_order_by_nulls_modifier = Database.sqlite_version_info >= (3, 30, 0)
|
supports_order_by_nulls_modifier = Database.sqlite_version_info >= (3, 30, 0)
|
||||||
|
# NULLS LAST/FIRST emulation on < 3.30 requires subquery wrapping.
|
||||||
|
requires_compound_order_by_subquery = Database.sqlite_version_info < (3, 30)
|
||||||
order_by_nulls_first = True
|
order_by_nulls_first = True
|
||||||
supports_json_field_contains = False
|
supports_json_field_contains = False
|
||||||
supports_update_conflicts = Database.sqlite_version_info >= (3, 24, 0)
|
supports_update_conflicts = Database.sqlite_version_info >= (3, 24, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user