Skip to content

Commit

Permalink
Passing encrypt option from mssql connection options to tedious options
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim Bøggild committed Oct 29, 2018
1 parent 691456d commit e136f67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tedious.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ class ConnectionPool extends base.ConnectionPool {
cfg.options.rowCollectionOnRequestCompletion = false
cfg.options.useColumnNames = false
cfg.options.appName = cfg.options.appName || 'node-mssql'
cfg.options.encrypt = this.config.encrypt != null ? this.config.encrypt : true

// tedious always connect via tcp when port is specified
if (cfg.options.instanceName) delete cfg.options.port
Expand Down

0 comments on commit e136f67

Please sign in to comment.