Repository navigation
docs: Clarify the fetch_no_return_value spec - #588
Merged
Merged
Conversation
The spec now states that `dbFetch()` on a result set from `dbSendStatement()` returns an empty data frame with a warning, and that such result sets are meant for side effects and should not be fetched. It points to `dbSendQuery()` for queries that return data. Wording suggested by Michael Chirico. Closes #409. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd7ccM8Y4Gr9rgiWjgH
The test runs a `CREATE TABLE` statement, so "data manipulation query" undersold what the spec covers. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd7ccM8Y4Gr9rgiWjgH
Member
Author
Accepted limitationsFrom the clean review of 582e385, which found nothing above Low. The other Low finding was fixed in be70402: the spec now names
Generated by Claude Code |
16 of 20 tasks
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.
This rewords the spec text of the
fetch_no_return_valuetest inR/spec-result-fetch.Rand regeneratesman/spec_result_fetch.Rd. The old sentence said that a result set fromdbSendStatement()"can be fetched and return an empty data frame", which read as an invitation to fetch it. The new text states thatdbFetch()on such a result set returns an empty data frame with a warning, that these result sets are meant for side effects only and should not be fetched, and thatdbSendQuery()is the function for queries that return data. The wording follows the suggestion by Michael Chirico in the issue. Test behavior is unchanged:devtools::test()gives the same counts as onmain(670 tests, 9695 expectations, 0 failures, 64 skips).Closes #409.
A clean review found nothing above Low; one point is addressed in the second commit (the spec now names
CREATE TABLEandINSERT), the other is listed under Accepted limitations.Requested in #585.
https://claude.ai/code/session_01Hr1rd7ccM8Y4Gr9rgiWjgH
Generated by Claude Code