@prisma/query-plan-executor 7.9.0-dev.30 → 7.9.0-dev.31

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -3
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -93473,7 +93473,7 @@ __export(index_exports, {
93473
93473
  module.exports = __toCommonJS(index_exports);
93474
93474
 
93475
93475
  // package.json
93476
- var version = "7.9.0-dev.30";
93476
+ var version = "7.9.0-dev.31";
93477
93477
 
93478
93478
  // ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
93479
93479
  function clampProp(e2, n2, t2, o2, r2) {
@@ -103685,7 +103685,17 @@ var TransactionManager = class {
103685
103685
  switch (transaction.status) {
103686
103686
  case "waiting":
103687
103687
  if (abortController.signal.aborted) {
103688
- void startTransactionPromise.then((tx) => tx.rollback()).catch((e2) => debug3("error in discarded transaction:", e2));
103688
+ void startTransactionPromise.then(async (tx) => {
103689
+ if (tx.options.usePhantomQuery) {
103690
+ await tx.rollback();
103691
+ } else {
103692
+ try {
103693
+ await tx.executeRaw(ROLLBACK_QUERY());
103694
+ } finally {
103695
+ await tx.rollback();
103696
+ }
103697
+ }
103698
+ }).catch((e2) => debug3("error in discarded transaction:", e2));
103689
103699
  await this.#closeTransaction(transaction, "timed_out");
103690
103700
  throw new TransactionStartTimeoutError();
103691
103701
  }
@@ -107466,7 +107476,12 @@ var MssqlQueryable = class {
107466
107476
  const req = this.conn.request();
107467
107477
  req.arrayRowMode = true;
107468
107478
  for (let i2 = 0; i2 < query2.args.length; i2++) {
107469
- req.input(`P${i2 + 1}`, mapArg2(query2.args[i2], query2.argTypes[i2]));
107479
+ const argType = query2.argTypes[i2];
107480
+ if (query2.args[i2] === null && argType.scalarType === "bytes") {
107481
+ req.input(`P${i2 + 1}`, import_mssql.default.VarBinary, null);
107482
+ } else {
107483
+ req.input(`P${i2 + 1}`, mapArg2(query2.args[i2], argType));
107484
+ }
107470
107485
  }
107471
107486
  const res = await req.query(query2.sql);
107472
107487
  return res;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/query-plan-executor",
3
- "version": "7.9.0-dev.30",
3
+ "version": "7.9.0-dev.31",
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",
@@ -19,11 +19,11 @@
19
19
  "hono": "^4.12.23",
20
20
  "temporal-polyfill": "0.3.0",
21
21
  "zod": "4.1.3",
22
- "@prisma/adapter-pg": "7.9.0-dev.30",
23
- "@prisma/adapter-mariadb": "7.9.0-dev.30",
24
- "@prisma/client-engine-runtime": "7.9.0-dev.30",
25
- "@prisma/driver-adapter-utils": "7.9.0-dev.30",
26
- "@prisma/adapter-mssql": "7.9.0-dev.30"
22
+ "@prisma/adapter-mariadb": "7.9.0-dev.31",
23
+ "@prisma/adapter-mssql": "7.9.0-dev.31",
24
+ "@prisma/client-engine-runtime": "7.9.0-dev.31",
25
+ "@prisma/driver-adapter-utils": "7.9.0-dev.31",
26
+ "@prisma/adapter-pg": "7.9.0-dev.31"
27
27
  },
28
28
  "files": [
29
29
  "dist"