Skip to content

Commit 0528df0

Browse files
committed
Fix connection through a string
1 parent 7366f57 commit 0528df0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var mssql = require('mssql');
22

33
/**
4-
* Driver for MS SQL Server
4+
* Database-js driver for MS SQL Server
55
*
66
* @author Thiago Delgado Pinto
77
*
@@ -96,7 +96,7 @@ module.exports = {
9696
open: function(connection, options) {
9797

9898
if ('string' === typeof connection) {
99-
return new mssql.connect(connection);
99+
return new MsSql(mssql.connect(connection), options);
100100
}
101101

102102
var config = {

0 commit comments

Comments
 (0)