We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
glue_sql wraps integer64 values in quotes, but does not for integers. Feel free to close this if that is intentional.
glue_sql
library(glue) library(bit64) con <- DBI::dbConnect(RSQLite::SQLite(), ":memory:") glue_sql(.con = con, "select {1}") glue_sql(.con = con, "select {as.integer64(1)}")
Issue also appears with odbc and SQL Server instead of SQLite.
odbc
The text was updated successfully, but these errors were encountered:
Providing a reprex and confirming and it's specifically a SQL issue:
library(glue) con <- DBI::dbConnect(RSQLite::SQLite(), ":memory:") glue_sql("select {1}", .con = con) #> <SQL> select 1 glue_sql("select {bit64::as.integer64(1)}", .con = con) #> <SQL> select '1' glue("select {1}") #> select 1 glue("select {bit64::as.integer64(1)}") #> select 1
Created on 2023-01-25 with reprex v2.0.2
Sorry, something went wrong.
Always use DBI::dbQuoteLiteral()
6c4f974
Fixes #279
Always use DBI::dbQuoteLiteral() (#293)
3a784a3
Fixes #279 Co-authored-by: Jennifer (Jenny) Bryan <jenny.f.bryan@gmail.com>
Successfully merging a pull request may close this issue.
glue_sql
wraps integer64 values in quotes, but does not for integers. Feel free to close this if that is intentional.Issue also appears with
odbc
and SQL Server instead of SQLite.The text was updated successfully, but these errors were encountered: