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
#' Calling `dbFetch()` on a result set from a data manipulation query
#' created by [dbSendStatement()] can
#' be fetched and return an empty data frame, with a warning.
query<- paste0("CREATE TABLE ", table_name, " (a integer)")
res<- local_result(dbSendStatement(con, query))
expect_warning(rows<- check_df(dbFetch(res)))
expect_identical(rows, data.frame())
},
I'm not sure I understand this, and the example is using dbSendStatement() in a way that differs slightly from the documentation I see (which covers INSERT/UPDATE/DELETE but not CREATE statements).
Do you have an example of a backend that implements this as intended? It's also a bit hard to search for.
The text was updated successfully, but these errors were encountered:
DBItest/R/spec-result-fetch.R
Lines 87 to 97 in f19fb4d
I'm not sure I understand this, and the example is using
dbSendStatement()
in a way that differs slightly from the documentation I see (which coversINSERT
/UPDATE
/DELETE
but notCREATE
statements).Do you have an example of a backend that implements this as intended? It's also a bit hard to search for.
The text was updated successfully, but these errors were encountered: