tediousjs / node-mssql

Microsoft SQL Server client for Node.js
https://tediousjs.github.io/node-mssql
MIT License
2.23k stars 466 forks source link

fix: TypeError with BigInt param #1677

Closed paulish closed 3 months ago

paulish commented 3 months ago

What this does:

PR fixes a TypeError "Cannot mix BigInt and other types, use explicit conversions" when passing a bigint parameter to request

The following example crashed with error:

const request = new mssql.Request();
request.input('bigintpara', BigInt('4294967294'));

Now it does not raise an error.

paulish commented 3 months ago

@dhensby tedious also has related bigint problem (seems bigint is not a popular js type) https://github.com/tediousjs/tedious/pull/1642

github-actions[bot] commented 3 months ago

:tada: This PR is included in version 11.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: