Node-mssql: tedious deprecated

Created on 21 Jan 2020  Â·  7Comments  Â·  Source: tediousjs/node-mssql

I am getting this message

tedious deprecated The default value for config.options.enableArithAbort will change from false to true in the next major version of tedious. Set the value to true or false explicitly to silence this message. node_modules\mssql\libtedious\connection-pool.js:61:23

I am using
1 NodeJS: 12
2 node-mssql: "^6.0.1"

Most helpful comment

I am getting this message

tedious deprecated The default value for config.options.enableArithAbort will change from false to true in the next major version of tedious. Set the value to true or false explicitly to silence this message. node_modules\mssql\libtedious\connection-pool.js:61:23

I am using
1 NodeJS: 12
2 node-mssql: "^6.0.1"

//Initiallising connection string
let dbConfig = {
user: "sa",
password: "**",
server: "localhost",
database: "TEST",
"options": {
"encrypt": true,
"enableArithAbort": true
},
};

All 7 comments

then you will need to set the value to true or false explicitly to silence the message.

I am getting this message

tedious deprecated The default value for config.options.enableArithAbort will change from false to true in the next major version of tedious. Set the value to true or false explicitly to silence this message. node_modules\mssql\libtedious\connection-pool.js:61:23

I am using
1 NodeJS: 12
2 node-mssql: "^6.0.1"

//Initiallising connection string
let dbConfig = {
user: "sa",
password: "**",
server: "localhost",
database: "TEST",
"options": {
"encrypt": true,
"enableArithAbort": true
},
};

So when the option is explicitly set you're still seeing the error?

Yes

On Thu, 2 Apr, 2020, 6:01 pm Daniel Hensby, notifications@github.com
wrote:

So when the option is explicitly set you're still seeing the error?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tediousjs/node-mssql/issues/976#issuecomment-607817085,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHCQEEENVVR3GLSPYYTH5F3RKSATRANCNFSM4KJMNRDQ
.

I'm afraid I cannot replicate this locally using the following test script:

test.js

'use strict'

const mssql = require('./')

const sqlConfig = {
  password: 'P@ssw0rd',
  database: 'master',
  stream: false,
  options: {
    enableArithAbort: true,
    encrypt: true
  },
  port: 1433,
  user: 'sa',
  server: 'localhost',
}

mssql.connect(sqlConfig)
  .then((pool) => {
    return pool.request().query('SELECT 1 as id')
  })
  .then((result) => {
    console.log(result)
  })
  .then(() => {
    return mssql.close()
  })
  .catch((err) => {
    console.log('error handler')
    console.error(err)
    return mssql.close()
  })

$ docker run -d --env ACCEPT_EULA=Y --env SA_PASSWORD=P@ssw0rd -p 127.0.0.1:1433:1433/tcp --name mssql docker.io/microsoft/mssql-server-linux:2017-CU9
$ cd ./node-mssql
$ git checkout 6
$ rm -rf node_modules/
$ npm i
$ node test.js
{ recordsets: [ [ [Object] ] ],
  recordset: [ { ID: 1 } ],
  output: {},
  rowsAffected: [ 1 ] }
$ docker stop mssql

Please provide any changes to my script that will replicate the problem

I am getting this message
tedious deprecated The default value for config.options.enableArithAbort will change from false to true in the next major version of tedious. Set the value to true or false explicitly to silence this message. node_modules\mssql\libtedious\connection-pool.js:61:23
I am using
1 NodeJS: 12
2 node-mssql: "^6.0.1"

//Initiallising connection string
let dbConfig = {
user: "sa",
password: "**",
server: "localhost",
database: "TEST",
"options": {
"encrypt": true,
"enableArithAbort": true
},
};

in my case, shows up two messages of deprecated and i needed to add on configuration these params:
"enableArithAbort": true and "trustServerCertificate": true

Sequelize 8.7.0
My configuration:

"development": {
    "dialect": "mssql",
    "seederStorage": "sequelize",
    "seederStorageTableName": "SequelizeSeed",
    "dialectOptions": {
        "server": "localhost",
        "authentication": {
            "options" : {
                "type": "default",
                "userName" :"MyUsername",
                "password" :"MyPassword"
            }
        },
        "options": {
            "database" :"MyDataBase",
            "enableArithAbort": true,
            "trustServerCertificate": true
        }
    }
  },

I am getting this message
tedious deprecated The default value for config.options.enableArithAbort will change from false to true in the next major version of tedious. Set the value to true or false explicitly to silence this message. node_modules\mssql\libtedious\connection-pool.js:61:23
I am using
1 NodeJS: 12
2 node-mssql: "^6.0.1"

//Initiallising connection string
let dbConfig = {
user: "sa",
password: "**",
server: "localhost",
database: "TEST",
"options": {
"encrypt": true,
"enableArithAbort": true
},
};

Me funciono gracias

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryankelley picture ryankelley  Â·  4Comments

PhantomRay picture PhantomRay  Â·  4Comments

danpetitt picture danpetitt  Â·  3Comments

praveen2916 picture praveen2916  Â·  3Comments

Halt001 picture Halt001  Â·  3Comments