Skip to content

Commit

Permalink
fail-safe mode (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed May 2, 2018
1 parent 854e0eb commit add9daa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

## Documentation updates

- Update docs on how to cope with stored procedures (#239, @aryoda).
- The DBI specification vignette is rendered correctly from the installed package (#234).
- Update docs on how to cope with stored procedures (#242, @aryoda).
- Add "Additional arguments" sections and more examples for `dbGetQuery()`, `dbSendQuery()`, `dbExecute()` and `dbSendStatement()`.
- The `dbColumnInfo()` method is now fully specified (#75).
- The `dbListFields()` method is now fully specified (#75).
Expand Down
7 changes: 5 additions & 2 deletions R/rd.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ methods_as_rd <- function(method) {
s4_topic <- function(x) {
sig <- paste0(x@defined, collapse = ",")
sig_text <- paste0('"', x@defined, '"', collapse = ", ")
package <- getNamespaceName(environment(x@.Data))
if (package == "DBI") {
package <- tryCatch(
getNamespaceName(environment(x@.Data)),
error = function(e) NA
)
if (is.na(package) || package == "DBI") {
NA_character_
} else {
paste0(
Expand Down

0 comments on commit add9daa

Please sign in to comment.