Skip to content

Commit 8adbdfd

Browse files
committed
fix distinct in str_agg
1 parent b037225 commit 8adbdfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ORM/Query/AST/Functions/StringAgg.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function parseFunction(Parser $parser): void
4444
public function getFunctionSql(SqlWalker $sqlWalker): string
4545
{
4646
return sprintf('STRING_AGG(%s%s, %s)',
47-
$this->distinct ? 'DISTINCT' : '',
47+
$this->distinct ? 'DISTINCT ' : '',
4848
$this->expr->dispatch($sqlWalker),
4949
$this->delimiter->dispatch($sqlWalker)
5050
);

0 commit comments

Comments
 (0)