Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the tinyint type error #22

Merged
merged 1 commit into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading