mirror of
https://github.com/django/django.git
synced 2025-04-06 06:26:41 +00:00
[2.0.x] Refs #24254 -- Removed unnecessary SQL AS clause in SQLCompiler.as_sql().
Incorrect on Oracle. Backport of 11ade8eefd32f5bc7ee6379b77824f02ca61c20b from master
This commit is contained in:
parent
ef5d86555d
commit
71da2b4f11
@ -564,7 +564,7 @@ class SQLCompiler:
|
||||
subselect, subparams = select_clone.as_sql(self, self.connection)
|
||||
sub_selects.append(subselect)
|
||||
sub_params.extend(subparams)
|
||||
return 'SELECT %s FROM (%s) AS subquery' % (
|
||||
return 'SELECT %s FROM (%s) subquery' % (
|
||||
', '.join(sub_selects),
|
||||
' '.join(result),
|
||||
), sub_params + params
|
||||
|
Loading…
x
Reference in New Issue
Block a user