From 0b7ce670907683e89d0824e0d2c1578e55dfc5d1 Mon Sep 17 00:00:00 2001 From: Andrew Gene Brown Date: Mon, 17 Jun 2024 11:24:55 -0700 Subject: [PATCH] createStaticNasis: `odbc::odbcConnectionColumns()` is now deprecated --- R/createStaticNASIS.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/createStaticNASIS.R b/R/createStaticNASIS.R index ee9d592d3..d0d09d13b 100644 --- a/R/createStaticNASIS.R +++ b/R/createStaticNASIS.R @@ -23,7 +23,7 @@ if (!requireNamespace("odbc")) stop("package `odbc` is required ", call. = FALSE) - columns <- odbc::odbcConnectionColumns(con, table_name) + columns <- odbc::dbListFields(con, table_name) # re-arrange VARCHAR(MAX) columns longcols <- subset(columns, columns$field.type == "varchar" & columns$column_size == 0)$name