Skip to content

v2.4.8

Compare
Choose a tag to compare
@TimelordUK TimelordUK released this 08 May 15:43
· 610 commits to master since this release
  1. pool PR fix- thanks #244
  2. electron v18
  3. query that returns BigInt (and all numeric) as strings rather than numbers
test('query a bigint implicit - configure query to return as string', testDone => {
    async function runner () {
      const num = '9223372036854775807'
      const q = `SELECT ${num} as number`
      const res = await theConnection.promises.query({
        query_str: q,
        numeric_string: true
      })
      try {
        assert.deepStrictEqual(res.first[0].number, num)
      } catch (e) {
        assert.ifError(e)
      }
    }
    runner().then(() => {
      testDone()
    })
  })