mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-07 17:14:09 +02:00
Remove duplicate comments
This commit is contained in:
parent
a8b3a80aec
commit
565cd4fa62
2 changed files with 0 additions and 4 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue