Skip to content

Commit

Permalink
test: make sure bigint intputs do not throw
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Jul 2, 2024
1 parent 8931bcf commit 0199ae5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/common/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ module.exports = (sql, driver) => {
done()
}).catch(done)
},
'bigint inputs' (done) {
const req = new TestRequest()
req.input('bigintparam', BigInt('4294967294'))
done()
},
'stored procedure' (mode, done) {
const req = new TestRequest()
req.input('in', sql.Int, null)
Expand Down
1 change: 1 addition & 0 deletions test/msnodesqlv8/msnodesqlv8.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ describe('msnodesqlv8', function () {

it('config validation', done => TESTS['config validation'](done))
it('value handler', done => TESTS['value handler'](done))
it('bigint inputs', done => TESTS['bigint inputs'](done))
it('stored procedure (exec)', done => TESTS['stored procedure']('execute', done))
it('stored procedure (batch)', done => TESTS['stored procedure']('batch', done))
it('user defined types', done => TESTS['user defined types'](done))
Expand Down
1 change: 1 addition & 0 deletions test/tedious/tedious.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ describe('tedious', () => {

it('config validation', done => TESTS['config validation'](done))
it('value handler', done => TESTS['value handler'](done))
it('bigint inputs', done => TESTS['bigint inputs'](done))
it('stored procedure (exec)', done => TESTS['stored procedure']('execute', done))
it('stored procedure (batch)', done => TESTS['stored procedure']('batch', done))
it('user defined types', done => TESTS['user defined types'](done))
Expand Down

0 comments on commit 0199ae5

Please sign in to comment.