@prisma/adapter-mariadb 7.2.0-integration-fix-enums-mapped-types-v7.2 → 7.2.0

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 CHANGED
@@ -130,9 +130,6 @@ function mapArg(arg, argType) {
130
130
  if (typeof arg === "string" && argType.scalarType === "bytes") {
131
131
  return Buffer.from(arg, "base64");
132
132
  }
133
- if (Array.isArray(arg) && argType.scalarType === "bytes") {
134
- return Buffer.from(arg);
135
- }
136
133
  if (ArrayBuffer.isView(arg)) {
137
134
  return Buffer.from(arg.buffer, arg.byteOffset, arg.byteLength);
138
135
  }
@@ -151,9 +148,6 @@ function mapRow(row, fields) {
151
148
  case "DATETIME2" /* DATETIME2 */:
152
149
  return (/* @__PURE__ */ new Date(`${value}Z`)).toISOString().replace(/(\.000)?Z$/, "+00:00");
153
150
  }
154
- if (Buffer.isBuffer(value)) {
155
- return Array.from(value);
156
- }
157
151
  if (typeof value === "bigint") {
158
152
  return value.toString();
159
153
  }
@@ -297,7 +291,8 @@ function mapDriverError(error) {
297
291
  kind: "mysql",
298
292
  code: error.errno,
299
293
  message: error.sqlMessage ?? "N/A",
300
- state: error.sqlState ?? "N/A"
294
+ state: error.sqlState ?? "N/A",
295
+ cause: error.cause?.message ?? void 0
301
296
  };
302
297
  }
303
298
  }
package/dist/index.mjs CHANGED
@@ -94,9 +94,6 @@ function mapArg(arg, argType) {
94
94
  if (typeof arg === "string" && argType.scalarType === "bytes") {
95
95
  return Buffer.from(arg, "base64");
96
96
  }
97
- if (Array.isArray(arg) && argType.scalarType === "bytes") {
98
- return Buffer.from(arg);
99
- }
100
97
  if (ArrayBuffer.isView(arg)) {
101
98
  return Buffer.from(arg.buffer, arg.byteOffset, arg.byteLength);
102
99
  }
@@ -115,9 +112,6 @@ function mapRow(row, fields) {
115
112
  case "DATETIME2" /* DATETIME2 */:
116
113
  return (/* @__PURE__ */ new Date(`${value}Z`)).toISOString().replace(/(\.000)?Z$/, "+00:00");
117
114
  }
118
- if (Buffer.isBuffer(value)) {
119
- return Array.from(value);
120
- }
121
115
  if (typeof value === "bigint") {
122
116
  return value.toString();
123
117
  }
@@ -261,7 +255,8 @@ function mapDriverError(error) {
261
255
  kind: "mysql",
262
256
  code: error.errno,
263
257
  message: error.sqlMessage ?? "N/A",
264
- state: error.sqlState ?? "N/A"
258
+ state: error.sqlState ?? "N/A",
259
+ cause: error.cause?.message ?? void 0
265
260
  };
266
261
  }
267
262
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-mariadb",
3
- "version": "7.2.0-integration-fix-enums-mapped-types-v7.2",
3
+ "version": "7.2.0",
4
4
  "description": "Prisma's driver adapter for \"mariadb\"",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -32,7 +32,7 @@
32
32
  "sideEffects": false,
33
33
  "dependencies": {
34
34
  "mariadb": "3.4.5",
35
- "@prisma/driver-adapter-utils": "7.2.0-integration-fix-enums-mapped-types-v7.2"
35
+ "@prisma/driver-adapter-utils": "7.2.0"
36
36
  },
37
37
  "scripts": {
38
38
  "dev": "DEV=true tsx helpers/build.ts",