Prechádzať zdrojové kódy

bug fixed for ListPage method

bug fixed for ListPage method
xormplus 9 rokov pred
rodič
commit
57dc03d1de
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      sessionplus.go

+ 1 - 1
sessionplus.go

@@ -132,7 +132,7 @@ func (resultMap *ResultMap) ListPage(firstResult int, maxResults int) ([]map[str
 	if resultMap.Results == nil {
 	if resultMap.Results == nil {
 		return nil, nil
 		return nil, nil
 	}
 	}
-	if firstResult >= maxResults {
+	if firstResult > maxResults {
 		return nil, ErrParamsFormat
 		return nil, ErrParamsFormat
 	}
 	}
 	if firstResult < 0 {
 	if firstResult < 0 {