-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add support for native BigInt #49
Comments
I haven't used the native bigints yet, so cannot say off hand yes or no. I would need to check it out. |
I tried it a while ago and it seemed to work fine. How would you handle writing the test when versions of Node.js prior to 10.4.0 do not support BigInt syntax/literals? 'bigints convert to strings': function() {
// This will likely fail in Node.js versions prior to 10.4.0.
assert.equal(SqlString.escape(9007199254740991n), '9007199254740991');
} (BTW, is it really necessary to support Node.js all the way back to v0.6? Versions below v10 are no longer maintained.) |
Ok. Sorry if I misunderstood your request then. I thought you were asking me to help determine if it would work or not.
I will need to investigate.
Yes, as I have use-cases for those versions. If those versions were dropped, I would no longer be able to use my own module, which seems counter-productive. |
This should make queries work, but the result data will still return strings. The /lib/protocol/Parser.js#L203 It might also make sense to have an I tried to open an issue in that repository, but I don't have permission. |
Any updates on this or mysqljs/mysql#2306? Can we just skip the test on older Node.js versions? |
sqlstring/lib/SqlString.js
Line 39 in 8f193ca
Is this the only required change?
The text was updated successfully, but these errors were encountered: