sqlite3 icon indicating copy to clipboard operation
sqlite3 copied to clipboard

Invalid FFI pointer type, expected null, integer or BigInt

Open xhyrom opened this issue 3 years ago • 3 comments

import { Database } from "https://deno.land/x/[email protected]/mod.ts";

const db = new Database("./files/dist/northwind.db");

const a = db.query("SELECT * FROM \"Employees\"");
console.log(a);

db.close();

image

xhyrom avatar Aug 25 '22 20:08 xhyrom

I am getting this as well with deno 1.2.5. I thought that upgrading from [email protected] to [email protected] would fix it, but no.

waynebloss avatar Aug 25 '22 21:08 waynebloss

There is a whole rewrite going on in #44 so, I'll probably just wait until that's released.

waynebloss avatar Aug 25 '22 21:08 waynebloss

There was a breaking change in Deno FFI API that split pointer type into two: pointer & buffer. This is fixed in rewrite which will land soon.

DjDeveloperr avatar Aug 28 '22 18:08 DjDeveloperr

I'll be closing this for now since rewrite has been released and it handles the changes in Deno FFI API changes as well.

DjDeveloperr avatar Sep 02 '22 17:09 DjDeveloperr