@mikro-orm/sql 7.2.1-dev.16 → 7.2.1-dev.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/sql",
3
- "version": "7.2.1-dev.16",
3
+ "version": "7.2.1-dev.17",
4
4
  "description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
5
5
  "keywords": [
6
6
  "data-mapper",
@@ -53,7 +53,7 @@
53
53
  "@mikro-orm/core": "^7.2.0"
54
54
  },
55
55
  "peerDependencies": {
56
- "@mikro-orm/core": "7.2.1-dev.16"
56
+ "@mikro-orm/core": "7.2.1-dev.17"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">= 22.17.0"
@@ -2505,7 +2505,7 @@ export class QueryBuilder {
2505
2505
  }
2506
2506
  }
2507
2507
  wrapModifySubQuery(meta) {
2508
- const subQuery = this.clone();
2508
+ const subQuery = this.clone(['returning']);
2509
2509
  subQuery.#state.finalized = true;
2510
2510
  // wrap one more time to get around MySQL limitations
2511
2511
  // https://stackoverflow.com/questions/45494/mysql-error-1093-cant-specify-target-table-for-update-in-from-clause