Skip to content

Commit eb3e4d0

Browse files
partik-misdhensby
authored andcommitted
fix: msnodesqlv8 connection string uses correct instance name
driver was not using the correct option for instanceName and so it was undefined rather than the correct value.
1 parent 0c9ce86 commit eb3e4d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msnodesqlv8/connection-pool.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ConnectionPool extends BaseConnectionPool {
2424
if (!this.config.connectionString) {
2525
cfg.conn_str = buildConnectionString({
2626
Driver: CONNECTION_DRIVER,
27-
Server: this.config.options.instanceName ? `${this.config.server}\\${this.config.instanceName}` : `${this.config.server},${this.config.port}`,
27+
Server: this.config.options.instanceName ? `${this.config.server}\\${this.config.options.instanceName}` : `${this.config.server},${this.config.port}`,
2828
Database: this.config.database,
2929
Uid: this.config.user,
3030
Pwd: this.config.password,

0 commit comments

Comments
 (0)