wangchuanjin hai 1 ano
pai
achega
26f38b6534
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      mysql/mysql.go

+ 1 - 0
mysql/mysql.go

@@ -307,6 +307,7 @@ func (m *Mysql) Select(bath int, f func(l *[]map[string]interface{}) bool, tx *s
 		list = append(list, ret)
 		if bath > 0 && len(list) == bath {
 			if !f(&list) {
+				list = []map[string]interface{}{}
 				break
 			}
 			list = []map[string]interface{}{}