@mikro-orm/knex 6.6.11-dev.2 → 6.6.11-dev.3

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.6.11-dev.2",
3
+ "version": "6.6.11-dev.3",
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",
@@ -59,14 +59,14 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "fs-extra": "11.3.3",
62
- "knex": "3.1.0",
62
+ "knex": "3.2.8",
63
63
  "sqlstring": "2.3.3"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@mikro-orm/core": "^6.6.10"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.6.11-dev.2",
69
+ "@mikro-orm/core": "6.6.11-dev.3",
70
70
  "better-sqlite3": "*",
71
71
  "libsql": "*",
72
72
  "mariadb": "*"
@@ -560,7 +560,7 @@ class QueryBuilder {
560
560
  const schema = this.getSchema(this.mainAlias);
561
561
  const type = this.type ?? enums_1.QueryType.SELECT;
562
562
  core_1.RawQueryFragment.markRaw(qb);
563
- core_1.Utils.runIfNotEmpty(() => this.helper.appendQueryCondition(type, this._cond, qb), this._cond && !this._onConflict);
563
+ core_1.Utils.runIfNotEmpty(() => this.helper.appendQueryCondition(type, this._cond, qb), this._cond && !this._onConflict && type !== enums_1.QueryType.TRUNCATE);
564
564
  core_1.Utils.runIfNotEmpty(() => qb.groupBy(this.prepareFields(this._groupBy, 'groupBy', schema)), this._groupBy);
565
565
  core_1.Utils.runIfNotEmpty(() => this.helper.appendQueryCondition(type, this._having, qb, undefined, 'having'), this._having);
566
566
  core_1.Utils.runIfNotEmpty(() => {