@prisma/query-plan-executor 7.9.0-dev.9 → 7.9.1-dev.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.
Files changed (2) hide show
  1. package/dist/index.js +30 -18
  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.9";
93476
+ var version = "7.9.1-dev.1";
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;
@@ -108215,23 +108230,20 @@ var PgQueryable = class {
108215
108230
  const { sql: sql4, args } = query2;
108216
108231
  const values = args.map((arg, i2) => mapArg3(arg, query2.argTypes[i2]));
108217
108232
  try {
108218
- const result = await this.client.query(
108219
- {
108220
- name: this.pgOptions?.statementNameGenerator?.(query2),
108221
- text: sql4,
108222
- values,
108223
- rowMode: "array",
108224
- types: {
108225
- getTypeParser: (oid, format) => {
108226
- if (format === "text" && customParsers[oid]) {
108227
- return customParsers[oid];
108228
- }
108229
- return types22.getTypeParser(oid, format);
108233
+ const result = await this.client.query({
108234
+ name: this.pgOptions?.statementNameGenerator?.(query2),
108235
+ text: sql4,
108236
+ values,
108237
+ rowMode: "array",
108238
+ types: {
108239
+ getTypeParser: (oid, format) => {
108240
+ if (format === "text" && customParsers[oid]) {
108241
+ return customParsers[oid];
108230
108242
  }
108243
+ return types22.getTypeParser(oid, format);
108231
108244
  }
108232
- },
108233
- values
108234
- );
108245
+ }
108246
+ });
108235
108247
  return result;
108236
108248
  } catch (e2) {
108237
108249
  this.onError(e2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/query-plan-executor",
3
- "version": "7.9.0-dev.9",
3
+ "version": "7.9.1-dev.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",
@@ -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-mariadb": "7.9.0-dev.9",
23
- "@prisma/adapter-pg": "7.9.0-dev.9",
24
- "@prisma/adapter-mssql": "7.9.0-dev.9",
25
- "@prisma/client-engine-runtime": "7.9.0-dev.9",
26
- "@prisma/driver-adapter-utils": "7.9.0-dev.9"
22
+ "@prisma/adapter-pg": "7.9.1-dev.1",
23
+ "@prisma/adapter-mssql": "7.9.1-dev.1",
24
+ "@prisma/adapter-mariadb": "7.9.1-dev.1",
25
+ "@prisma/client-engine-runtime": "7.9.1-dev.1",
26
+ "@prisma/driver-adapter-utils": "7.9.1-dev.1"
27
27
  },
28
28
  "files": [
29
29
  "dist"