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 Oct. 30, 2024, 5:06 p.m.