mssql 12.6.0 → 12.7.0

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.
@@ -23,22 +23,6 @@ const N_TYPES = {
23
23
  NumericN: 0x6C
24
24
  }
25
25
 
26
- // Workaround for tedious TVP declaration not including schema name.
27
- // See: https://github.com/tediousjs/node-mssql/issues/1759
28
- const SchemaAwareTVP = Object.create(tds.TYPES.TVP, {
29
- declaration: {
30
- value: function (parameter) {
31
- const value = parameter.value
32
- if (value && value.schema) {
33
- return value.schema + '.' + value.name + ' readonly'
34
- }
35
- return value.name + ' readonly'
36
- },
37
- writable: true,
38
- configurable: true
39
- }
40
- })
41
-
42
26
  const getTediousType = function (type) {
43
27
  switch (type) {
44
28
  case TYPES.VarChar: return tds.TYPES.VarChar
@@ -70,7 +54,7 @@ const getTediousType = function (type) {
70
54
  case TYPES.Binary: return tds.TYPES.Binary
71
55
  case TYPES.VarBinary: return tds.TYPES.VarBinary
72
56
  case TYPES.UDT: case TYPES.Geography: case TYPES.Geometry: return tds.TYPES.UDT
73
- case TYPES.TVP: return SchemaAwareTVP
57
+ case TYPES.TVP: return tds.TYPES.TVP
74
58
  case TYPES.Variant: return tds.TYPES.Variant
75
59
  default: return type
76
60
  }
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "azure",
22
22
  "node-mssql"
23
23
  ],
24
- "version": "12.6.0",
24
+ "version": "12.7.0",
25
25
  "main": "index.js",
26
26
  "type": "commonjs",
27
27
  "repository": {
@@ -38,7 +38,7 @@
38
38
  "commander": "^11.0.0",
39
39
  "debug": "^4.3.3",
40
40
  "tarn": "^3.0.2",
41
- "tedious": "^19.0.0"
41
+ "tedious": "^19.2.2 || ^20.0.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@commitlint/cli": "^20.0.0",