You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
odbc::dbListTables does not return temporary tables unless catalog_name parameter is provided. DBI specification and documentation suggests that temporary tables should be returned when default parameters are used.
Database
Microsoft SQL Server Version: 13.00.7016
Reproducible Example
library(odbc)
library(DBI)
con<- dbConnect(odbc::odbc(), dsn="MicrosoftSQL")
DBI::dbExecute(con,
"CREATE TABLE ##global_temp ( colA varchar(10) )")
#output does not include ##global_temp tableodbc::dbListTables(con)
#output includes ##global_temp tableodbc::dbListTables(con, catalog_name="tempdb")
It looks like we need a custom dbListTables() method for SQL server; we already provide custom dbExistsTable(). Maybe when the catalog is not supplied, we automatically append the contents of the tempdb catalog?
Issue Description and Expected Result
odbc::dbListTables
does not return temporary tables unlesscatalog_name
parameter is provided. DBI specification and documentation suggests that temporary tables should be returned when default parameters are used.Database
Microsoft SQL Server Version: 13.00.7016
Reproducible Example
Session Info
The text was updated successfully, but these errors were encountered: