eee
This commit is contained in:
+3
-2
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user