File: test-db-escape.R

package info (click to toggle)
r-cran-dbplyr 2.3.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,376 kB
  • sloc: sh: 13; makefile: 2
file content (6 lines) | stat: -rw-r--r-- 191 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
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'")
})