Skip to content

Commit

Permalink
Tweak implementation of tbl() method
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Oct 27, 2023
1 parent 420520d commit 0426189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/backend-dbplyr__duckdb_connection.R
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ sql_escape_datetime.duckdb_connection <- function(con, x) {
# @param src .con A \code{\link{dbConnect}} object, as returned by \code{dbConnect()}
# @param from Table or parquet/csv -files to be registered
# @param cache Enable object cache for parquet files
tbl.duckdb_connection <- function(src, from, cache = FALSE, ...) {
tbl.duckdb_connection <- function(src, from, ..., cache = FALSE) {
ident_q <- pkg_method("ident_q", "dbplyr")
if (!inherits(from, "sql") & !DBI::dbExistsTable(src, from)) from <- ident_q(from)
if (!inherits(from, "sql") && !DBI::dbExistsTable(src, from)) from <- ident_q(from)
if (cache) DBI::dbExecute(src, "PRAGMA enable_object_cache")
NextMethod("tbl")
}
Expand Down

0 comments on commit 0426189

Please sign in to comment.