@spinajs/orm-mssql 2.0.66 → 2.0.67

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.
Files changed (2) hide show
  1. package/lib/compilers.js +7 -7
  2. package/package.json +5 -5
package/lib/compilers.js CHANGED
@@ -47,15 +47,15 @@ let MsSqlOnDuplicateQueryCompiler = class MsSqlOnDuplicateQueryCompiler extends
47
47
  });
48
48
  return {
49
49
  bindings: wBindings.concat(bindings),
50
- expression: `MERGE INTO ${table} WITH (HOLDLOCK) AS target
50
+ expression: `MERGE INTO ${table} WITH (HOLDLOCK) AS target
51
51
  USING (SELECT * FROM ${table} WHERE ${this._builder.getColumn().map((c) => {
52
52
  return `${c} = ?`;
53
- })}) as source
54
- ON (target.${descriptor.PrimaryKey} = source.${descriptor.PrimaryKey})
55
- WHEN MATCHED
56
- THEN UPDATE
57
- SET ${columns}
58
- WHEN NOT MATCHED
53
+ })}) as source
54
+ ON (target.${descriptor.PrimaryKey} = source.${descriptor.PrimaryKey})
55
+ WHEN MATCHED
56
+ THEN UPDATE
57
+ SET ${columns}
58
+ WHEN NOT MATCHED
59
59
  THEN `.replace(/(\r\n|\n|\r)/gm, ''),
60
60
  };
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spinajs/orm-mssql",
3
- "version": "2.0.66",
3
+ "version": "2.0.67",
4
4
  "description": "orm mssql integration",
5
5
  "exports": "./lib/index.js",
6
6
  "type": "module",
@@ -48,10 +48,10 @@
48
48
  "chai-as-promised": "^7.1.1"
49
49
  },
50
50
  "dependencies": {
51
- "@spinajs/configuration": "^2.0.66",
52
- "@spinajs/di": "^2.0.66",
53
- "@spinajs/orm": "^2.0.66",
54
- "@spinajs/orm-sql": "^2.0.66",
51
+ "@spinajs/configuration": "^2.0.67",
52
+ "@spinajs/di": "^2.0.67",
53
+ "@spinajs/orm": "^2.0.67",
54
+ "@spinajs/orm-sql": "^2.0.67",
55
55
  "mssql": "^9.1.1"
56
56
  },
57
57
  "gitHead": "002dc553b0ffffd72193d0121ac425a4083bc9ee"