Skip to content

Commit 01dfc65

Browse files
committed
Adding a space in query
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.
1 parent 3e8903a commit 01dfc65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Database/BaseBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ protected function whereHaving(string $qbKey, $key, $value = null, string $type
670670

671671
if ($v instanceof Closure) {
672672
$builder = $this->cleanClone();
673-
$v = '(' . str_replace("\n", ' ', $v($builder)->getCompiledSelect()) . ')';
673+
$v = ' (' . str_replace("\n", ' ', $v($builder)->getCompiledSelect()) . ')';
674674
} else {
675675
$bind = $this->setBind($k, $v, $escape);
676676
$v = " :{$bind}:";

0 commit comments

Comments
 (0)