Skip to content

Cannot use Id() with dbWriteTable() #179

Closed

Description

@etiennebr

I'm not sure if the issue is in DBI or RPostgres.

library(DBI)
con <- dbConnect(RPostgres::Postgres())

dbWriteTable(con, "mtcars", mtcars)
dbWriteTable(con, Id(table = "mtcars"), mtcars, overwrite = TRUE)
#> Error in (function (classes, fdef, mtable) : unable to find an inherited method 
#> for function 'dbWriteTable' for signature '"PqConnection", "SQL", "missing"'
dbWriteTable(con, SQL("mtcars"), mtcars, overwrite = TRUE)
#> Error: Can't unquote mtcars  # (Works with CRAN version, I think)

I'm using the github DBI and RPostgres versions

Activity

  1. krlmlr commented on Mar 26, 2018

    @krlmlr
    Member

    Thanks for reporting. It's both :-o

  2. krlmlr commented on Mar 27, 2018

    @krlmlr
    Member

    Closed in dc60ae0.

  3. github-actions commented on Dec 7, 2020

    @github-actions
    Contributor

    This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

  4. locked and limited conversation to collaborators on Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions