mssql 12.5.0 → 12.5.1

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.
@@ -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)) {
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "azure",
22
22
  "node-mssql"
23
23
  ],
24
- "version": "12.5.0",
24
+ "version": "12.5.1",
25
25
  "main": "index.js",
26
26
  "type": "commonjs",
27
27
  "repository": {