mirror of
https://github.com/django/django.git
synced 2025-07-28 07:34:19 +00:00
Fixed #12429 -- Ensure that raw queries call resolve_columns if the backend defines it. This ensures (as much as possible) that the model values returned by a raw query match that in normal queries. Thanks to Ian Kelly for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12904 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c39ec6dccb
commit
f7cf58ac0e
6 changed files with 39 additions and 14 deletions
|
@ -14,10 +14,6 @@ class SQLCompiler(object):
|
|||
self.using = using
|
||||
self.quote_cache = {}
|
||||
|
||||
# Check that the compiler will be able to execute the query
|
||||
for alias, aggregate in self.query.aggregate_select.items():
|
||||
self.connection.ops.check_aggregate_support(aggregate)
|
||||
|
||||
def pre_sql_setup(self):
|
||||
"""
|
||||
Does any necessary class setup immediately prior to producing SQL. This
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue