Skip to content

Commit 6afd03a

Browse files
committed
Fixing subquery aliases in Oracle
1 parent 027bab1 commit 6afd03a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SQLParser/Node/SubQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function toSql(array $parameters, AbstractPlatform $platform, int $indent
196196
}
197197
$sql .= '('.$this->subQuery->toSql($parameters, $platform, $indent, $conditionsMode, $extrapolateParameters).')';
198198
if ($this->alias) {
199-
$sql .= ' AS '.$platform->quoteSingleIdentifier($this->alias);
199+
$sql .= ' '.$platform->quoteSingleIdentifier($this->alias);
200200
}
201201
if ($this->refClause) {
202202
$sql .= ' ON ';

0 commit comments

Comments
 (0)