From 83ad0ced1bcb0fae76a091b745dc7539e72cf874 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 7 Sep 2016 19:22:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BQuery=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E5=88=86=E9=A1=B5=E6=96=B9=E6=B3=95=20=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index ef403afd..786ed0c9 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1007,7 +1007,8 @@ class Query if (!$simple) { $options = $this->getOptions(); $total = $this->count(); - $results = $this->options($options)->page($page, $listRows)->select(); + $bind = $this->bind; + $results = $this->options($options)->bind($bind)->page($page, $listRows)->select(); } else { $results = $this->limit(($page - 1) * $listRows, $listRows + 1)->select(); $total = null;