@mikro-orm/knex 6.1.13-dev.31 → 6.1.13-dev.33

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/knex",
3
- "version": "6.1.13-dev.31",
3
+ "version": "6.1.13-dev.33",
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
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -66,6 +66,6 @@
66
66
  "@mikro-orm/core": "^6.1.12"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.1.13-dev.31"
69
+ "@mikro-orm/core": "6.1.13-dev.33"
70
70
  }
71
71
  }
@@ -488,7 +488,7 @@ class QueryBuilderHelper {
488
488
  const order = core_1.Utils.isNumber(direction) ? core_1.QueryOrderNumeric[direction] : direction;
489
489
  const raw = core_1.RawQueryFragment.getKnownFragment(key);
490
490
  if (raw) {
491
- ret.push(`${this.platform.formatQuery(raw.sql, raw.params)} ${order.toLowerCase()}`);
491
+ ret.push(...this.platform.getOrderByExpression(this.platform.formatQuery(raw.sql, raw.params), order));
492
492
  continue;
493
493
  }
494
494
  for (const f of core_1.Utils.splitPrimaryKeys(key)) {