Skip to content

Commit

Permalink
Don't pass ... from sql_render() to sql_build()
Browse files Browse the repository at this point in the history
  • Loading branch information
mgirlich committed Jul 3, 2023
1 parent 2283557 commit 1b10877
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/sql-build.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ sql_render.lazy_query <- function(query,
sql_options = NULL,
subquery = FALSE,
lvl = 0) {
# FIXME the handling of `...` seems wrong overall.
qry <- sql_build(query, con = con, ..., sql_options = sql_options)
qry <- sql_optimise(qry, con = con, ..., subquery = subquery)
qry <- sql_build(query, con = con, sql_options = sql_options)
qry <- sql_optimise(qry, con = con, subquery = subquery)

if (sql_options$cte) {
query_list <- flatten_query(qry, list(queries = list(), name = NULL))
Expand Down

0 comments on commit 1b10877

Please sign in to comment.