tests/testthat/test-db-escape.R

test_that("can translate raw to blob spec", {
  con <- simulate_dbi()

  expect_equal(sql_escape_raw(con, NULL), "NULL")
  expect_equal(sql_escape_raw(con, charToRaw("abc")), "X'616263'")
})

Try the dbplyr package in your browser

Any scripts or data that you put into this service are public.

dbplyr documentation built on Oct. 26, 2023, 9:06 a.m.