mssql 12.5.2 → 12.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,6 +10,14 @@ const shared = require('../shared')
|
|
|
10
10
|
const { MSSQLError } = require('../error')
|
|
11
11
|
const { CHANNELS, tracePromise, traceCallback, publish } = require('../diagnostics')
|
|
12
12
|
|
|
13
|
+
const NODE_MSSQL_SCHEMA = {
|
|
14
|
+
...MSSQL_SCHEMA,
|
|
15
|
+
useutc: { type: 'boolean' },
|
|
16
|
+
stream: { type: 'boolean' },
|
|
17
|
+
parsejson: { type: 'boolean' },
|
|
18
|
+
'request timeout': { type: 'number' }
|
|
19
|
+
}
|
|
20
|
+
|
|
13
21
|
/**
|
|
14
22
|
* Class ConnectionPool.
|
|
15
23
|
*
|
|
@@ -124,7 +132,7 @@ class ConnectionPool extends EventEmitter {
|
|
|
124
132
|
|
|
125
133
|
static _parseConnectionString (connectionString) {
|
|
126
134
|
const result = parse(connectionString)
|
|
127
|
-
const parsed = result.toSchema(
|
|
135
|
+
const parsed = result.toSchema(NODE_MSSQL_SCHEMA)
|
|
128
136
|
// Include non-standard keys (client id, tenant id, token, msi endpoint, msi secret)
|
|
129
137
|
// that are used for authentication but not part of the MSSQL schema
|
|
130
138
|
for (const [key, value] of result) {
|