Skip to content

Commit

Permalink
Adding a space in query
Browse files Browse the repository at this point in the history
This space isn't mandatory, and the query string gets normalized later, adding this space, but let's make it cleanly in the first place.
  • Loading branch information
vlakoff committed Nov 5, 2021
1 parent 3e8903a commit 01dfc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Database/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ protected function whereHaving(string $qbKey, $key, $value = null, string $type

if ($v instanceof Closure) {
$builder = $this->cleanClone();
$v = '(' . str_replace("\n", ' ', $v($builder)->getCompiledSelect()) . ')';
$v = ' (' . str_replace("\n", ' ', $v($builder)->getCompiledSelect()) . ')';
} else {
$bind = $this->setBind($k, $v, $escape);
$v = " :{$bind}:";
Expand Down

0 comments on commit 01dfc65

Please sign in to comment.