This commit is contained in:
2026-06-30 23:15:59 +08:00
parent fce2b8bcdb
commit a35d0bb921
+2 -2
View File
@@ -221,7 +221,7 @@ class SqlBuilder extends Component
public function one(): string public function one(): string
{ {
$this->query->offset(0)->limit(1); $this->query->offset(0)->limit(1);
return join('', [$this->makeSelect($this->query), $this->make(), $this->makeLimit()]); return join(' ', [$this->makeSelect($this->query), $this->make(), $this->makeLimit()]);
} }
@@ -231,7 +231,7 @@ class SqlBuilder extends Component
*/ */
public function all(): string public function all(): string
{ {
return join('', [$this->makeSelect($this->query), $this->make(), $this->makeLimit()]); return join(' ', [$this->makeSelect($this->query), $this->make(), $this->makeLimit()]);
} }