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 May 29, 2024, 6:19 a.m.