@prisma/query-plan-executor 7.2.0-dev.7 → 7.2.0-integration-fix-sqlite-deadlock-fix.1
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/dist/index.js +13 -8
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -97773,7 +97773,7 @@ __export(index_exports, {
|
|
|
97773
97773
|
module.exports = __toCommonJS(index_exports);
|
|
97774
97774
|
|
|
97775
97775
|
// package.json
|
|
97776
|
-
var version = "7.2.0-
|
|
97776
|
+
var version = "7.2.0-integration-fix-sqlite-deadlock-fix.1";
|
|
97777
97777
|
|
|
97778
97778
|
// ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
|
|
97779
97779
|
function clampProp(e2, n2, t2, o2, r2) {
|
|
@@ -107859,16 +107859,21 @@ var TransactionManager = class {
|
|
|
107859
107859
|
const abortController = new AbortController();
|
|
107860
107860
|
const startTimer = createTimeoutIfDefined(() => abortController.abort(), options.maxWait);
|
|
107861
107861
|
startTimer?.unref?.();
|
|
107862
|
-
|
|
107863
|
-
|
|
107864
|
-
|
|
107865
|
-
|
|
107866
|
-
|
|
107862
|
+
transaction.transaction = await new Promise((resolve, reject) => {
|
|
107863
|
+
void once(abortController.signal, "abort");
|
|
107864
|
+
void this.driverAdapter.startTransaction(options.isolationLevel).catch(rethrowAsUserFacing).then((tx) => {
|
|
107865
|
+
if (abortController.signal.aborted) {
|
|
107866
|
+
tx.rollback().catch((e2) => debug3("error in discarded transaction:", e2));
|
|
107867
|
+
resolve(void 0);
|
|
107868
|
+
} else {
|
|
107869
|
+
resolve(tx);
|
|
107870
|
+
}
|
|
107871
|
+
}, reject).finally(() => clearTimeout(startTimer));
|
|
107872
|
+
});
|
|
107867
107873
|
this.transactions.set(transaction.id, transaction);
|
|
107868
107874
|
switch (transaction.status) {
|
|
107869
107875
|
case "waiting":
|
|
107870
|
-
if (
|
|
107871
|
-
void startTransactionPromise.then((tx) => tx.rollback()).catch((e2) => debug3("error in discarded transaction:", e2));
|
|
107876
|
+
if (transaction.transaction === void 0) {
|
|
107872
107877
|
await this.#closeTransaction(transaction, "timed_out");
|
|
107873
107878
|
throw new TransactionStartTimeoutError();
|
|
107874
107879
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/query-plan-executor",
|
|
3
|
-
"version": "7.2.0-
|
|
3
|
+
"version": "7.2.0-integration-fix-sqlite-deadlock-fix.1",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"temporal-polyfill": "0.3.0",
|
|
21
21
|
"vitest": "3.2.4",
|
|
22
22
|
"zod": "4.1.3",
|
|
23
|
-
"@prisma/adapter-pg": "7.2.0-
|
|
24
|
-
"@prisma/
|
|
25
|
-
"@prisma/
|
|
26
|
-
"@prisma/
|
|
27
|
-
"@prisma/adapter-
|
|
23
|
+
"@prisma/adapter-pg": "7.2.0-integration-fix-sqlite-deadlock-fix.1",
|
|
24
|
+
"@prisma/client-engine-runtime": "7.2.0-integration-fix-sqlite-deadlock-fix.1",
|
|
25
|
+
"@prisma/adapter-mariadb": "7.2.0-integration-fix-sqlite-deadlock-fix.1",
|
|
26
|
+
"@prisma/adapter-mssql": "7.2.0-integration-fix-sqlite-deadlock-fix.1",
|
|
27
|
+
"@prisma/driver-adapter-utils": "7.2.0-integration-fix-sqlite-deadlock-fix.1"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist"
|