Skip to content

Commit

Permalink
Auto-update from GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed May 1, 2022
1 parent 671c1b4 commit faee421
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R/dbConnect_PqDriver.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ dbConnect_PqDriver <- function(drv, dbname = NULL,

conn@timezone <- timezone
conn@timezone_out <- timezone_out

typnames <- try(dbGetQuery(conn, "SELECT oid, typname FROM pg_type", immediate = TRUE), silent = TRUE)
if(inherits(typnames, "try-error")){
typnames <- data.frame(typname = character(), oid = character())

if (inherits(typnames, "try-error")) {
typnames <- data.frame(typname = character(), oid = character())
}

conn@typnames <- typnames

on.exit(NULL)
Expand Down

0 comments on commit faee421

Please sign in to comment.