Skip to content

Dates escaped incorrectly in Postgres #727

Closed
@carlganz

Description

@carlganz

Possibly similar to #661 but originally posted here: r-dbi/RPostgres#362

library(RPostgres)
# use whatever Postgres connection you have
con <- postgresDefault()
dbplyr::sql_escape_date(con, Sys.Date())
# <SQL> '2021-12-02'
dbQuoteLiteral(con, Sys.Date())
# <SQL> '2021-12-02'::date

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorfunc trans 🌍Translation of individual functions to SQLhelp wanted ❤️we'd love your help!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions