-
-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full support 64 bit integers with BigInt #1501
base: master
Are you sure you want to change the base?
Conversation
This seems fine, why is it locked? |
@renatoalencar Would you be able to rebase the PR? 🙂 |
Sure! I'll try to do that later today. |
@renatoalencar Thanks! I've had a quick look and I think the PR might need some gating on |
465b1a1
to
163cb7a
Compare
I was expecting something like that, as I've mentioned my first implementation wasn't really ready. But I added the extra checks and seems to be working. Thank you |
163cb7a
to
730ab55
Compare
In the meantime, I forked your repository at https://github.com/juanrgm/node-sqlite3/tree/int64-support and forced the build from source (juanrgm@881d6bf) for installing with npm easily: npm install https://github.com/juanrgm/node-sqlite3/tarball/int64-support const sqlite3 = require('sqlite3').verbose();
const db = new sqlite3.Database(':memory:');
db.serialize(() => {
db.run("CREATE TABLE t (v INTEGER)");
const v = 8876343627091516928n
const stmt = db.prepare("INSERT INTO t VALUES (?)");
stmt.run(v)
stmt.finalize();
db.each("SELECT v FROM t", (err, row) => {
console.log({ row });
if (row.v !== v)
throw new Error('Not equal')
});
});
db.close(); |
I have issue when using
I guess it's related to I have merge this branch with master, and conflict free, and test passes. can this PR continued ? |
Well this is not full ready yet, but I'd like to bring some discussions: