Skip to content

Commit

Permalink
Fixing subquery aliases in Oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Aug 3, 2020
1 parent 027bab1 commit 6afd03a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SQLParser/Node/SubQuery.php
Expand Up @@ -196,7 +196,7 @@ public function toSql(array $parameters, AbstractPlatform $platform, int $indent
}
$sql .= '('.$this->subQuery->toSql($parameters, $platform, $indent, $conditionsMode, $extrapolateParameters).')';
if ($this->alias) {
$sql .= ' AS '.$platform->quoteSingleIdentifier($this->alias);
$sql .= ' '.$platform->quoteSingleIdentifier($this->alias);
}
if ($this->refClause) {
$sql .= ' ON ';
Expand Down

0 comments on commit 6afd03a

Please sign in to comment.