Skip to content

Commit

Permalink
fixes params bindings for select query stringifier
Browse files Browse the repository at this point in the history
  • Loading branch information
v00v4n committed Nov 11, 2021
1 parent 1244053 commit 1d8c0d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Db/Sql/Stringifiers/SelectStringifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ public function stringifyRaw(?array &$params): string
{
$query = $this->getSelectQuery();
if (!$query->getCombiningClause()->isEmpty()) {
return $this->stringifyCombiningQuery($query);
return $this->stringifyCombiningQuery($query, $params);
}

return $this->stringifySingleSelectQuery($query);
return $this->stringifySingleSelectQuery($query, $params);
}

protected function stringifySingleSelectQuery(SelectQuery $query): string
protected function stringifySingleSelectQuery(SelectQuery $query, ?array &$params): string
{
$sql = $this->stringifySelectClause($query, $params)
. $this->stringifyFromClause($query->getTableClause(), $params)
Expand All @@ -105,7 +105,7 @@ protected function stringifySingleSelectQuery(SelectQuery $query): string
return $sql;
}

protected function stringifyCombiningQuery(SelectQuery $query): string
protected function stringifyCombiningQuery(SelectQuery $query, ?array &$params): string
{
$checkAllEmpty = [
'ColumnsClause' => $query->getColumnsClause()->isAsterisk(),
Expand Down

0 comments on commit 1d8c0d8

Please sign in to comment.