Repository navigation
Conversation
For anonymous or numbered placeholders, `db_bind()` refused any list with a names attribute, because the check joined `!is.null(names(params))` and `any(names(params) != "")` with `||`. A list whose names are all `""` now binds as an unnamed list. A list with at least one nonempty or `NA` name is still refused with the same error. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd7QnTD4acgzTUihnF4
krlmlr
force-pushed
the
claude/rb-bind-empty-names
branch
from
November 30, 2026 23:43
7c5f40c to
0231eb2
Compare
…-empty-names Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd7QnTD4acgzTUihnF4
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd7QnTD4acgzTUihnF4
This was referenced Nov 30, 2026
This branch has not been deployed
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.
For anonymous (
?) or numbered (?1) placeholders,dbBind()now binds a list whose names are all empty, such assetNames(list(1), ""), by position, as it binds an unnamed list. Before, it failed with "Cannot use named parameters for anonymous/numbered placeholders", because the check inR/db_bind.Rwas!is.null(names(params)) || any(names(params) != ""), which is true for any list with a names attribute. The check is nowany(nzchar(names(params))): the intended&&, written so that anNAname still counts as a name and gives the same error instead of "missing value where TRUE/FALSE needed". A list with at least one nonempty name, fully or partially named, is refused as before; named placeholders are unaffected.Tested in
tests/testthat/test-dbBind.R: an all-empty-named list binds to?and to?2, ?1placeholders (both fail on the base with the error above, pass with the fix), and a fully named, partially named, orNA-named list is still refused (passes on both). Full suite withNOT_CRAN=true: 0 failures, 10563 passed, 63 skipped, 6 warnings; the three errors intest-httpvfs.Rcome from the local HTTP server in the sandbox and occur identically on the base.Layer B0 of the rebuilt chain, planned in #880; based on #885. Not ported from an old PR; the bug was noticed while rebuilding the chain.
Coordinating session: https://claude.ai/code/session_01Hr1rd7QnTD4acgzTUihnF4
Generated by Claude Code