From e33fc16fa3dfbc7c879d8653959dc750e8162d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=A2=A8=E6=9F=93=E5=B0=BD=E9=9D=92=E8=A1=A3?= =?UTF-8?q?=E9=A2=9C?= <378809360@qq.com> Date: Wed, 15 Aug 2018 18:16:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20gdb=5Fmodel.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- g/database/gdb/gdb_model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g/database/gdb/gdb_model.go b/g/database/gdb/gdb_model.go index 0279e5586..b89172419 100644 --- a/g/database/gdb/gdb_model.go +++ b/g/database/gdb/gdb_model.go @@ -421,7 +421,7 @@ func (md *Model) getFormattedSql() string { // 组块结果集 // @author ymrjqyy // @author 2018-08-13 -func (md *Model) Chunks(limit int, callback func(result Result, err error) bool) { +func (md *Model) Chunk(limit int, callback func(result Result, err error) bool) { var page = 1 for { md.ForPage(page, limit)