Remove duplicate comments

This commit is contained in:
Simon Willison 2026-08-11 22:52:10 -07:00
commit 565cd4fa62
2 changed files with 0 additions and 4 deletions

View file

@ -2478,8 +2478,6 @@ def rows(
if limit:
sql += f" limit {limit}"
if offset:
# SQLite requires a limit clause before offset - a negative limit
# means "no upper bound", so offset works without an explicit limit
if not limit:
sql += " limit -1"
sql += f" offset {offset}"

View file

@ -3598,8 +3598,6 @@ class Table(Queryable):
if limit is not None:
limit_offset += f" limit {limit}"
if offset is not None:
# SQLite requires a limit clause before offset - a negative limit
# means "no upper bound", so offset works without an explicit limit
if limit is None:
limit_offset += " limit -1"
limit_offset += f" offset {offset}"