@mikro-orm/knex 6.1.13-dev.35 → 6.1.13-dev.37

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.
@@ -151,7 +151,7 @@ class AbstractSqlConnection extends core_1.Connection {
151
151
  client: type,
152
152
  connection: this.getConnectionOptions(),
153
153
  pool: this.config.get('pool'),
154
- }, this.config.get('driverOptions'));
154
+ }, this.config.get('driverOptions'), this.options.driverOptions);
155
155
  const options = config.connection;
156
156
  const password = options.password;
157
157
  if (!(password instanceof Function)) {
@@ -1092,7 +1092,9 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
1092
1092
  continue;
1093
1093
  }
1094
1094
  const order = typeof childOrder === 'object' ? childOrder[propName] : childOrder;
1095
- orderBy.push({ [`${propAlias}.${propName}`]: order });
1095
+ if (order) {
1096
+ orderBy.push({ [`${propAlias}.${propName}`]: order });
1097
+ }
1096
1098
  }
1097
1099
  }
1098
1100
  return orderBy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "6.1.13-dev.35",
3
+ "version": "6.1.13-dev.37",
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.35"
69
+ "@mikro-orm/core": "6.1.13-dev.37"
70
70
  }
71
71
  }