Browse Source

分页insert fix bug

marion 5 năm trước cách đây
mục cha
commit
ec7db6cd34
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      utils/db_utils.go

+ 1 - 1
utils/db_utils.go

@@ -64,7 +64,7 @@ func TransInsertWithTableNameAndSize(trans *xorm.Session, tableName string, size
 	}
 	tableName = strings.TrimSpace(tableName)
 
-	if size < 0 {
+	if size <= 0 {
 		size = 500
 	}