Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to MSSQL from linux #426

Closed
crdil opened this issue Mar 9, 2017 · 1 comment
Closed

Can't connect to MSSQL from linux #426

crdil opened this issue Mar 9, 2017 · 1 comment

Comments

@crdil
Copy link

crdil commented Mar 9, 2017

After updating nodejs to 7.7.2 I can no longer connect to a MSSQL database.
Here is the simple query I'm testing with.

var sql = require('mssql');

sql.connect("mssql://admin:[email protected]/master").then(function() {
    new sql.Request().query('select * from sys.databases').then(function(recordset) {
        console.dir(recordset);
    }).catch(function(err) {
       console.log(err);
    });
});

Error

(node:5571) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: "listener" argument must be a function
(node:5571) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

If i downgrade to 7.7.1 it works as usually.

@patriksimek
Copy link
Collaborator

patriksimek commented Mar 9, 2017

Thanks for report, I'm closing this because it's a duplicate of #425

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants