mssql 12.5.0 → 12.5.2
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.
|
@@ -356,11 +356,10 @@ class PreparedStatement extends EventEmitter {
|
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
-
req.execute('sp_execute',
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
})
|
|
359
|
+
req.execute('sp_execute', typeof callback === 'function'
|
|
360
|
+
? callback
|
|
361
|
+
: () => {}
|
|
362
|
+
)
|
|
364
363
|
|
|
365
364
|
return req
|
|
366
365
|
}
|
package/lib/tedious/request.js
CHANGED
|
@@ -176,7 +176,7 @@ const createColumns = function (metadata, arrayRowMode) {
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
const valueCorrection = function (value, metadata) {
|
|
179
|
-
const type = getMssqlType(metadata.type)
|
|
179
|
+
const type = getMssqlType(metadata.type, metadata.dataLength)
|
|
180
180
|
if (valueHandler.has(type)) {
|
|
181
181
|
return valueHandler.get(type)(value)
|
|
182
182
|
} else if ((metadata.type === tds.TYPES.UDT) && (value != null)) {
|