Skip to content

Commit

Permalink
sql server: connection columns: temp tables: custom logic only if exa…
Browse files Browse the repository at this point in the history
…ct (#888)
  • Loading branch information
detule authored Feb 4, 2025
1 parent f7ba147 commit 333a54b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/driver-sql-server.R
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ setMethod("odbcConnectionColumns_", c("Microsoft SQL Server", "character"),
schema_name = NULL,
column_name = NULL,
exact = FALSE) {
if (isTempTable(conn, name, catalog_name, schema_name, column_name, exact)) {
if (exact &&
isTempTable(conn, name, catalog_name, schema_name, column_name, exact)) {
catalog_name <- "tempdb"
schema_name <- "dbo"
query <- paste0("SELECT name FROM tempdb.sys.tables WHERE ",
Expand Down

0 comments on commit 333a54b

Please sign in to comment.