Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dbi #279

Closed
wants to merge 2 commits into from
Closed

Fix dbi #279

wants to merge 2 commits into from

Conversation

eric-fey-hus
Copy link

Fixed the temp table in insertTable for dbi connection.

@@ -417,8 +417,8 @@ insertTable.DatabaseConnectorDbiConnection <- function(connection,
}
isSqlReservedWord(c(tableName, colnames(data)), warn = TRUE)

tableName <- gsub("^#", "", tableName)
if (dbms(connection) == "sqlite") {
#tableName <- gsub("^#", "", tableName) #EF: SQL Server needs the hashtag for temp tables
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this breaks behavior on all DBI drivers currently directly supported by DatabaseConnector? (SQLite, DuckDB)

@schuemie
Copy link
Member

Closing until my comment is addressed

@schuemie schuemie closed this Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants