mssql 8.1.1 → 8.1.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.
package/CHANGELOG.txt CHANGED
@@ -1,3 +1,7 @@
1
+ v8.1.2 (2022-05-27)
2
+ -------------------
3
+ [fix] quote identifiers in table constraint declaration ([#1397](https://github.com/tediousjs/node-mssql/pull/1397))
4
+
1
5
  v8.1.1 (2022-05-18)
2
6
  -------------------
3
7
  [fix] quote identifiers in table primary keys ([#1394](https://github.com/tediousjs/node-mssql/pull/1394))
@@ -30,6 +34,10 @@ v8.0.0 (2022-01-30)
30
34
  [removed] Remove connection string parser helpers ((#1342)[https://github.com/tediousjs/node-mssql/pull/1342])
31
35
  [removed] Remove deprecated pool properties ((#1359)[https://github.com/tediousjs/node-mssql/pull/1359])
32
36
 
37
+ v7.3.5 (2022-05-27)
38
+ -------------------
39
+ [fix] quote identifiers in table constraint declaration ([#1397](https://github.com/tediousjs/node-mssql/pull/1397))
40
+
33
41
  v7.3.4 (2022-05-18)
34
42
  -------------------
35
43
  [fix] msnodesqlv8.js file was missing from previous release
package/lib/table.js CHANGED
@@ -116,7 +116,7 @@ Table.prototype.declare = function declare () {
116
116
  return def.join(' ')
117
117
  })
118
118
 
119
- const constraint = pkey.length > 1 ? `, constraint PK_${this.temporary ? this.name.substr(1) : this.name} primary key (${pkey.join(', ')})` : ''
119
+ const constraint = pkey.length > 1 ? `, constraint [PK_${this.temporary ? this.name.substr(1) : this.name}] primary key (${pkey.join(', ')})` : ''
120
120
  return `create table ${this.path} (${cols.join(', ')}${constraint})`
121
121
  }
122
122
 
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "azure",
22
22
  "node-mssql"
23
23
  ],
24
- "version": "8.1.1",
24
+ "version": "8.1.2",
25
25
  "main": "index.js",
26
26
  "repository": "github:tediousjs/node-mssql",
27
27
  "license": "MIT",