mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-16 21:44:10 +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:
|
if limit:
|
||||||
sql += f" limit {limit}"
|
sql += f" limit {limit}"
|
||||||
if offset:
|
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:
|
if not limit:
|
||||||
sql += " limit -1"
|
sql += " limit -1"
|
||||||
sql += f" offset {offset}"
|
sql += f" offset {offset}"
|
||||||
|
|
|
||||||
|
|
@ -3598,8 +3598,6 @@ class Table(Queryable):
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
limit_offset += f" limit {limit}"
|
limit_offset += f" limit {limit}"
|
||||||
if offset is not None:
|
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:
|
if limit is None:
|
||||||
limit_offset += " limit -1"
|
limit_offset += " limit -1"
|
||||||
limit_offset += f" offset {offset}"
|
limit_offset += f" offset {offset}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue