Skip to content

Commit

Permalink
fix tinyint (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyuhang0 authored Apr 6, 2024
1 parent ce73264 commit 8c8fa1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/conversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
};
Expand Down

0 comments on commit 8c8fa1a

Please sign in to comment.