1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed #30859 -- Fixed DatabaseFeatures.supports_aggregate_filter_clause on SQLite 3.30.1+.

This commit is contained in:
Mariusz Felisiak 2019-10-15 20:55:49 +02:00 committed by GitHub
parent adfd920cc5
commit 4a849b6701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -43,3 +43,4 @@ class DatabaseFeatures(BaseDatabaseFeatures):
supports_functions_in_partial_indexes = Database.sqlite_version_info >= (3, 15, 0)
supports_over_clause = Database.sqlite_version_info >= (3, 25, 0)
supports_frame_range_fixed_distance = Database.sqlite_version_info >= (3, 28, 0)
supports_aggregate_filter_clause = Database.sqlite_version_info >= (3, 30, 1)

View File

@ -46,7 +46,7 @@ class DatabaseOperations(BaseDatabaseOperations):
for expr in expression.get_source_expressions():
try:
output_field = expr.output_field
except FieldError:
except (AttributeError, FieldError):
# Not every subexpression has an output_field which is fine
# to ignore.
pass