Skip to content

Commit

Permalink
Merge pull request #1678 from dhensby/pulls/bigint-inputs
Browse files Browse the repository at this point in the history
test: make sure bigint intputs do not throw
  • Loading branch information
dhensby authored Jul 3, 2024
2 parents 8931bcf + 0199ae5 commit 9e5aef4
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 9e5aef4

Please sign in to comment.