Skip to content

Integer64 & Integers treated differently by glue_sql #279

@carlganz

Description

@carlganz

glue_sql wraps integer64 values in quotes, but does not for integers. Feel free to close this if that is intentional.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SQL 🛢️bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions