From 431c5d1a28e0495f0f512e9544db182f5e7e4af9 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 1 Jun 2016 08:34:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BQuery=E7=B1=BB=E7=9A=84chunk?= =?UTF-8?q?=E6=96=B9=E6=B3=95=20=E6=94=AF=E6=8C=81=E5=8F=82=E6=95=B0?= =?UTF-8?q?=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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index fd1f6c4a..b7a2ee65 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1720,6 +1720,7 @@ class Query { $column = $column ?: $this->getPk(); $options = $this->getOptions(); + $bind = $this->bind; $resultSet = $this->limit($count)->order($column, 'asc')->select(); while (!empty($resultSet)) { @@ -1730,6 +1731,7 @@ class Query $lastId = is_array($end) ? $end[$column] : $end->$column; $resultSet = $this->options($options) ->limit($count) + ->bind($bind) ->where($column, '>', $lastId) ->order($column, 'asc') ->select();