@mikro-orm/sql 7.2.8-dev.3 → 7.2.8-dev.4

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.8-dev.3",
3
+ "version": "7.2.8-dev.4",
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.7"
54
54
  },
55
55
  "peerDependencies": {
56
- "@mikro-orm/core": "7.2.8-dev.3"
56
+ "@mikro-orm/core": "7.2.8-dev.4"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">= 22.17.0"
@@ -1109,6 +1109,11 @@ export class QueryBuilderHelper {
1109
1109
  const meta = this.#metadata.get(this.#entityName);
1110
1110
  const tableName = meta.tableName;
1111
1111
  for (const key of Object.keys(cond)) {
1112
+ // operators are kept, only the properties inside them are qualified
1113
+ if (key === '$and' || key === '$or' || key === '$not') {
1114
+ Utils.asArray(cond[key]).forEach((sub) => this.processOnConflictCondition(sub, schema));
1115
+ continue;
1116
+ }
1112
1117
  const mapped = this.mapper(key, QueryType.UPSERT);
1113
1118
  Utils.renameKey(cond, key, tableName + '.' + mapped);
1114
1119
  }