tests/testthat/test_null_byte.R

test_that("test null bytes in strings", {
  con <- dbConnect(duckdb())
  on.exit(dbDisconnect(con, shutdown = TRUE))
  expect_error(dbGetQuery(con, "SELECT chr(0)"))
})

Try the duckdb package in your browser

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

duckdb documentation built on Nov. 17, 2023, 5:08 p.m.