Skip to content

Commit 7c6109c

Browse files
committed
Changed connection method
1 parent 34a9040 commit 7c6109c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,13 @@ module.exports = {
106106
user: connection.Username,
107107
password: connection.Password,
108108
options: {
109+
abortTransactionOnError: true,
109110
encrypt: false
110111
}
111112
};
112113

113114
config.options = Object.assign(config.options, options || {});
114-
var pool = new mssql.ConnectionPool(config);
115+
var pool = new mssql.connect(config);
115116
return new MsSql(pool, options);
116117
}
117118
};

0 commit comments

Comments
 (0)