tests/testthat/test-null_byte.R

test_that("test null bytes in strings", {
  con <- local_con()
  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. 5, 2025, 5:41 p.m.