Skip to content

Commit

Permalink
Avoid raw strings
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Dec 17, 2023
1 parent 3e53a2a commit 7ab5cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/spec-meta-bind.R
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,11 @@ spec_meta_bind <- list(
res <- NULL
}
},
bind_character_escape = if (getRversion() >= "4.0") function(ctx, con) {
bind_character_escape = function(ctx, con) {
placeholder_funs <- get_placeholder_funs(ctx)
is_null_check <- ctx$tweaks$is_null_check
for (placeholder_fun in placeholder_funs) {
bind_values <- c(" ", "\n", "\r", "\b", "'", "\"", "[", "]", r"[\]", NA)
bind_values <- c(" ", "\n", "\r", "\b", "'", "\"", "[", "]", "\\", NA)
placeholder <- placeholder_fun(10L)
names(bind_values) <- names(placeholder)
placeholder_values <- map_chr(bind_values, function(x) DBI::dbQuoteLiteral(con, x[1]))
Expand Down

0 comments on commit 7ab5cf0

Please sign in to comment.