Skip to content

Commit

Permalink
Check vars argument of tbl_sql()
Browse files Browse the repository at this point in the history
  • Loading branch information
mgirlich committed Mar 16, 2023
1 parent a93c845 commit eca5de6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions R/tbl-sql.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@ tbl_sql <- function(subclass, src, from, ..., vars = NULL) {
from <- as.sql(from, con = src$con)
}

check_character(vars, allow_null = TRUE)
vars <- vars %||% dbplyr_query_fields(src$con, from_sql)

tbl_sql_impl(subclass, src, from, vars)
}

tbl_sql_impl <- function(subclass, src, from, vars) {
dplyr::make_tbl(
c(subclass, "sql", "lazy"),
src = src,
Expand Down

0 comments on commit eca5de6

Please sign in to comment.