Skip to content

Commit

Permalink
database.base:Table.select - only use offset if it is greater than 0
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Aug 20, 2024
1 parent 72ed918 commit 7d48e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acacore/database/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def select(
if limit is not None:
statement += f" LIMIT {limit}"

if offset is not None:
if offset is not None and offset > 0:
statement += f" OFFSET {offset}"

return Cursor(self.connection.execute(statement, parameters), columns, self)
Expand Down

0 comments on commit 7d48e52

Please sign in to comment.