Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use check_dots_used() in dbGetQuery() and friends #413

Open
mgirlich opened this issue Apr 25, 2023 · 1 comment
Open

Use check_dots_used() in dbGetQuery() and friends #413

mgirlich opened this issue Apr 25, 2023 · 1 comment

Comments

@mgirlich
Copy link

e.g. dbGetQuery() doesn't complain about extra arguments. I guess this affects all backends.

library(DBI)
con <- dbConnect(RSQLite::SQLite(), ":memory:")

DBI::dbGetQuery(
  con,
  "SELECT 1",
  extra_arg = 1
)
#>   1
#> 1 1

Created on 2023-04-25 with reprex v2.0.2

@krlmlr
Copy link
Member

krlmlr commented Jun 11, 2023

Thanks. We could experiment with adding rlang to "Suggests" and calling it only if it is installed. No idea if it works for S4 methods.

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

No branches or pull requests

2 participants