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 April 14, 2026, 1:07 a.m.