From efed861af696cf5a3c56261c9f61772e116ed521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E6=9E=9C=E7=9A=84=E5=A6=82=E6=9E=9C?= Date: Fri, 28 Jan 2022 11:44:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8F=82=E6=95=B0=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DbManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DbManager.php b/src/DbManager.php index 66c23af..35624f9 100644 --- a/src/DbManager.php +++ b/src/DbManager.php @@ -112,14 +112,14 @@ function __exec(MysqlClient $client,QueryBuilder $builder,bool $raw = false,?flo $result = $client->execQueryBuilder($builder,$raw,$timeout); if($this->onQuery){ $temp = clone $builder; - call_user_func($this->onQuery,$result,$temp,$client,$start); + call_user_func($this->onQuery,$result,$temp,$start,$client); } if(in_array('SQL_CALC_FOUND_ROWS',$builder->getLastQueryOptions())){ $temp = new QueryBuilder(); $temp->raw('SELECT FOUND_ROWS() as count'); $count = $client->execQueryBuilder($temp,false,$timeout); if($this->onQuery){ - call_user_func($this->onQuery,$count,$temp,$client,$start); + call_user_func($this->onQuery,$count,$temp,$start,$client); } $result->setTotalCount($count->getResult()[0]['count']); }