Skip to content

dbExistsTable returns incorrect value when table in schema #279

Description

@hadley
library(DBI)

con <- dbConnect(RSQLite::SQLite(), ":memory:")
dbExecute(con, "ATTACH ':memory:' AS foo")
#> [1] 0
dbWriteTable(con, Id(schema = "foo", table = "df"), iris)
nrow(dbReadTable(con, Id(schema = "foo", table = "df")))
#> [1] 150

dbExistsTable(con, Id(schema = "foo", table = "df"))
#> [1] FALSE

Created on 2019-02-09 by the reprex package (v0.2.1.9000)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions