gpt4 book ai didi

Node.js MSSQL错误: tedious deprecated The default value for `config.options.enableArithAbort` will change from `false` to `true`

转载 作者:行者123 更新时间:2023-12-03 15:21:03 31 4
gpt4 key购买 nike

我得到下面的错误。我如何解决它?

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\lib\tedious\connection-pool.js:61:23

最佳答案

将数据库配置选项更改为以下内容:

     var config = {
user: 'username',
password: 'password',
server: 'localhost',
database: 'databasename',
"options": {
"encrypt": true,
"enableArithAbort": true
}
};
在此处阅读问题详细信息: https://github.com/tediousjs/node-mssql/issues/976

关于Node.js MSSQL错误: tedious deprecated The default value for `config.options.enableArithAbort` will change from `false` to `true` ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63496622/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com