Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Iterate + BufferSize + where 第二条语句开始丢失查询条件 #939

@qkzsky

Description

@qkzsky

err := engine.Where("enabled = ?", true).BufferSize(2).Iterate(&User{}, func(idx int, bean interface{}) error {
user := bean.(*User)
return nil
})
// select * from user where (enabled = ?) LIMIT 2 []interface {}{true}
// select * from user limit 2 offset 2
// select * from user limit 2 offset 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions