This commit is contained in:
2025-05-19 11:19:20 +08:00
parent 555d160b40
commit 89f6949556
+3 -2
View File
@@ -206,7 +206,8 @@ class SqlBuilder extends Component
*/ */
public function one(): string public function one(): string
{ {
return $this->makeSelect($this->query->getSelect()) . $this->make() . $this->makeLimit($this->query->limit(1)); $this->query->offset(0)->limit(1);
return $this->makeSelect($this->query->getSelect()) . $this->make() . $this->makeLimit();
} }
@@ -216,7 +217,7 @@ class SqlBuilder extends Component
*/ */
public function all(): string public function all(): string
{ {
return $this->makeSelect($this->query->getSelect()) . $this->make() . $this->makeLimit($this->query); return $this->makeSelect($this->query->getSelect()) . $this->make() . $this->makeLimit();
} }