eee
This commit is contained in:
@@ -99,6 +99,8 @@ class Command extends Component
|
|||||||
|
|
||||||
$prepare->execute($this->params);
|
$prepare->execute($this->params);
|
||||||
|
|
||||||
|
$prepare->fetch();
|
||||||
|
|
||||||
$count = $prepare->rowCount();
|
$count = $prepare->rowCount();
|
||||||
$prepare->closeCursor();
|
$prepare->closeCursor();
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -235,7 +235,7 @@ class SqlBuilder extends Component
|
|||||||
*/
|
*/
|
||||||
public function count(): string
|
public function count(): string
|
||||||
{
|
{
|
||||||
return $this->makeSelect(['0']) . $this->make();
|
return $this->makeSelect(['COUNT(*)']) . $this->make();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user