@mikro-orm/sql 7.2.7-dev.0 → 7.2.7-dev.2

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.
@@ -223,6 +223,10 @@ export class AbstractSqlConnection extends Connection {
223
223
  }
224
224
  /** Rolls back the transaction or rolls back to the savepoint. */
225
225
  async rollback(ctx, eventBroadcaster, loggerContext) {
226
+ // kysely rolls back on its own when the database answers a commit with a rollback
227
+ if (ctx.isRolledBack) {
228
+ return;
229
+ }
226
230
  await eventBroadcaster?.dispatchEvent(EventType.beforeTransactionRollback, ctx);
227
231
  await this.waitForIdleTransaction(ctx);
228
232
  if ('savepointName' in ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/sql",
3
- "version": "7.2.7-dev.0",
3
+ "version": "7.2.7-dev.2",
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",
@@ -47,13 +47,13 @@
47
47
  "copy": "node ../../scripts/copy.mjs"
48
48
  },
49
49
  "dependencies": {
50
- "kysely": "0.29.7"
50
+ "kysely": "0.29.8"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@mikro-orm/core": "^7.2.6"
54
54
  },
55
55
  "peerDependencies": {
56
- "@mikro-orm/core": "7.2.7-dev.0"
56
+ "@mikro-orm/core": "7.2.7-dev.2"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">= 22.17.0"