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

Support vector broadcasting for parameterized query #368

Open
psychelzh opened this issue Nov 5, 2023 · 1 comment
Open

Support vector broadcasting for parameterized query #368

psychelzh opened this issue Nov 5, 2023 · 1 comment

Comments

@psychelzh
Copy link

When specifying multiple parameters, if one of the parameters is a scalar and the others have the same length, it will be reasonable to expand that scalar to the same length as the other parameters.

@krlmlr
Copy link
Member

krlmlr commented Nov 5, 2023

Thanks, makes sense. As a workaround, you could now use as.data.frame(...) or as.list(as.data.frame(...)) :

as.data.frame(list(a = 1, b = 2:4))
#>   a b
#> 1 1 2
#> 2 1 3
#> 3 1 4

Created on 2023-11-05 with reprex v2.0.2

@krlmlr krlmlr transferred this issue from r-dbi/RMariaDB Apr 1, 2024
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