Skip to content

Commit

Permalink
Use rlang
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Oct 8, 2023
1 parent 6364dcf commit f0acb45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/mariadb.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
rlang::on_load({
if (rlang::is_installed("dbplyr") && getNamespaceInfo("dbplyr", "spec")["version"] <= "2.3.4") {
dbplyr <- asNamespace("dbplyr")
unlockBinding("sql_values_subquery.MariaDBConnection", dbplyr)
rlang::env_binding_unlock(dbplyr, "sql_values_subquery.MariaDBConnection")
try(dbplyr$sql_values_subquery.MariaDBConnection <- dbplyr$sql_values_subquery.DBIConnection, silent = TRUE)
lockBinding("sql_values_subquery.MariaDBConnection", dbplyr)
rlang::env_binding_lock(dbplyr, "sql_values_subquery.MariaDBConnection")
}
})

0 comments on commit f0acb45

Please sign in to comment.