We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bff6544 commit 794909aCopy full SHA for 794909a
1 file changed
R/DBI.R
@@ -589,7 +589,10 @@ setMethod(
589
if (!is.null(databaseSchema)) {
590
name <- paste(databaseSchema, name, sep = ".")
591
}
592
- sql <- "TRUNCATE TABLE @table; DROP TABLE @table;"
+ sql <- "TRUNCATE TABLE @table;"
593
+ sql <- SqlRender::render(sql = sql, table = name)
594
+ DBI::dbExecute(conn, sql)
595
+ sql <- "DROP TABLE @table;"
596
sql <- SqlRender::render(sql = sql, table = name)
597
DBI::dbExecute(conn, sql)
598
return(TRUE)
0 commit comments