From e68968587c26ada82b9df9e248ec77b670b19f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Mon, 30 Oct 2023 18:42:56 +0100 Subject: [PATCH] chore: Add assertion --- R/dm_sql.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/dm_sql.R b/R/dm_sql.R index 42f75f131c..8c8609663b 100644 --- a/R/dm_sql.R +++ b/R/dm_sql.R @@ -44,6 +44,8 @@ dm_sql <- function( # check_suggested("dbplyr", "dm_sql") + stopifnot(is(dest, "DBIConnection")) + table_names <- ddl_check_table_names(table_names, dm) dm <- ddl_reorder_dm(dm, dest)