Refs #24254 -- Removed unnecessary SQL AS clause in SQLCompiler.as_sql().

Incorrect on Oracle.
This commit is contained in:
Mariusz Felisiak 2017-10-06 18:47:41 +02:00 committed by Tim Graham
parent 9d93dff333
commit 11ade8eefd
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ class SQLCompiler:
subselect, subparams = select_clone.as_sql(self, self.connection) subselect, subparams = select_clone.as_sql(self, self.connection)
sub_selects.append(subselect) sub_selects.append(subselect)
sub_params.extend(subparams) sub_params.extend(subparams)
return 'SELECT %s FROM (%s) AS subquery' % ( return 'SELECT %s FROM (%s) subquery' % (
', '.join(sub_selects), ', '.join(sub_selects),
' '.join(result), ' '.join(result),
), sub_params + params ), sub_params + params