Repository navigation
Respect --limit 0 in sqlite-utils rows - #965
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
atishay-kasliwal
left a comment
There was a problem hiding this comment.
Ran sqlite-utils rows on a 5-row table: --limit 0 now returns [], where main returned all 5 rows. --limit 2, --limit 2 --offset 1, --offset 3 and no options give the same rows as main.
Brings in the removal of a redundant cast flagged by newer ty and the removal of the retired macos-14 runner, which were failing CI on this branch. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes:
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 forrowspassed 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/