From 8c8fa1a125fbb18aa0ec2a1e3069d46aafa32b49 Mon Sep 17 00:00:00 2001 From: shi yuhang <52435083+shiyuhang0@users.noreply.github.com> Date: Sat, 6 Apr 2024 14:06:10 +0800 Subject: [PATCH] fix tinyint (#22) --- README.md | 4 +++- package.json | 2 +- src/conversion.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index de3e21b..a7494d9 100644 --- a/README.md +++ b/README.md @@ -148,10 +148,12 @@ try { | v5.8.x | v5.8.x | [v0.0.9, v0.1.0) | | v5.9.x | v5.9.x | [v0.0.9, v0.1.0) | | v5.10.x | v5.10.x | \>= v0.1.0 | +| v5.11.x | v5.11.x | \>= v0.1.0 | + Here is the step to step guide for how to choose the version: 1. Choose the Prisma version: Choose the one as you need. -2. Choose the adapter version: If you are using Prisma vx.y.z, you should choose the same version of adapter. If there is no adapter version for your Prisma version, you can choose the latest adapter version in vx.y. Open an issue once you find the adapter version is not compatible with Prisma version. +2. Choose the adapter version: If you are using Prisma vx.y.z, you can choose the latest adapter version in vx.y. Open an issue once you find the adapter version is not compatible with Prisma version. 3. Choose the serverless driver version: You can always use the latest version according to the table above. ## Limitations diff --git a/package.json b/package.json index e4e2733..5cc5e73 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tidbcloud/prisma-adapter", - "version": "5.11.0", + "version": "5.11.1", "description": "Prisma's driver adapter for \"@tidbcloud/serverless\"", "main": "dist/index.js", "module": "dist/index.mjs", diff --git a/src/conversion.ts b/src/conversion.ts index 7aa67f3..e5d327e 100644 --- a/src/conversion.ts +++ b/src/conversion.ts @@ -105,7 +105,7 @@ export const customDecoder = { VARBINARY: (value: string) => Array.from(hexToUint8Array(value)), BLOB: (value: string) => Array.from(hexToUint8Array(value)), LONGBLOB: (value: string) => Array.from(hexToUint8Array(value)), - TINYINT: (value: string) => Array.from(hexToUint8Array(value)), + TINYBLOB: (value: string) => Array.from(hexToUint8Array(value)), MEDIUMBLOB: (value: string) => Array.from(hexToUint8Array(value)), BIT: (value: string) => Array.from(hexToUint8Array(value)), };