Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
wibeasley authored Jan 14, 2024
2 parents 9023af8 + 494c6de commit a6ce83c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: OuhscMunge
Title: Data Manipulation Operations
Description: Data manipulation operations frequently used in OUHSC BBMC
projects.
Version: 0.2.0.9016
Version: 0.2.0.9017
Authors@R: person("Will", "Beasley", email="[email protected]", role=c("aut", "cre"),
comment = c(ORCID = "0000-0002-5613-5006"))
URL: https://github.com/OuhscBbmc/OuhscMunge, http://ouhsc.edu/bbmc/
Expand Down
10 changes: 5 additions & 5 deletions R/retrieve-key-value.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ retrieve_key_value <- function(
# browser()
base::tryCatch(
expr = {
query <- DBI::dbSendQuery(channel, sql)
DBI::dbBind(query, list(project_name, key))
ds_value <- DBI::dbFetch(query)

ds_value <- DBI::dbGetQuery(channel, sql, params = list(project_name, key))
# query <- DBI::dbSendQuery(channel, sql, immediate = FALSE)
# bind <- DBI::dbBind(query, list(project_name, key))
# ds_value <- DBI::dbFetch(query)
}, finally = {
if (exists("query")) DBI::dbClearResult(query)
# if (exists("query")) DBI::dbClearResult(query)
# if (exists("bind")) DBI::dbClearResult(bind)
if (close_channel_on_exit) DBI::dbDisconnect(channel)
}
Expand Down

0 comments on commit a6ce83c

Please sign in to comment.