littledivy / duckdb

blazing fast duckdb bindings for deno
https://deno.land/x/duckdb
Apache License 2.0
25 stars 6 forks source link

Fix BigInt error #4

Closed gilesdring closed 1 year ago

gilesdring commented 1 year ago

The call to BigInt in toArrayBuffer() was causing the following error.

error: TypeError: Cannot convert object to primitive value
  const view = new Deno.UnsafePointerView(BigInt(v));

Results seem OK without.

Running

deno 1.35.0 (release, x86_64-unknown-linux-gnu) v8 11.6.189.7 typescript 5.1.6

Closes #3

o-az commented 1 year ago

I'm coming across this error too for all queries. Having to resort to another lib