Skip to content

Respect --limit 0 in sqlite-utils rows - #965

Open
LucioLiu wants to merge 1 commit into
simonw:mainfrom
LucioLiu:fix/rows-zero-limit
Open

LucioLiu wants to merge 1 commit into
simonw:mainfrom
LucioLiu:fix/rows-zero-limit

Conversation

@LucioLiu

@LucioLiu LucioLiu commented Nov 26, 2026 •

Copy link
Copy Markdown

Closes #964.

Distinguish an omitted limit from an explicit zero when building the SQL for rows. This also keeps the offset-only fallback (limit -1) from overriding a zero limit.

Added two cases to the existing command tests. On main, requesting zero rows returned both fixture records, and adding an offset returned the second record. With the fix both commands produce []. All 15 cases for rows passed locally, and the full suite reported 1,499 passed and 16 skipped.

Prepared and tested with Codex.


📚 Documentation preview 📚: https://sqlite-utils--965.org.readthedocs.build/en/965/

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T13:58:20.859687Z 2c6a6a2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rows --limit 0 exports the entire table

1 participant