Possibly similar to https://github.com/tidyverse/dbplyr/issues/661 but originally posted here: https://github.com/r-dbi/RPostgres/issues/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 ```
Possibly similar to #661 but originally posted here: r-dbi/RPostgres#362