You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Confusing error for names in parameterized queries #266
...provokes an error: 'Named parameters not supported'.
This confused me because the code has positional rather than named placeholders. After looking at the package sources (PgResult.R line 172) I arrived at this work-around:
dbBind(rs, params= unname(dat))
Would it cause problems if names were just ignored rather than raising an error? If so, perhaps adding an example of this work-around to the docs would help others.
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
Activity
krlmlr commentedon Dec 26, 2020
Thanks. I agree the error message could be clearer. What wording would be best suited for the problem?
The strictness here is intentional -- named placeholders require named parameters, same with unnamed.
github-actions commentedon Sep 15, 2022
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.