Skip to content

Commit

Permalink
v5.6.0 (#8)
Browse files Browse the repository at this point in the history
* v5.6.0

* remove char

* fix UNSIGNED INT overflow
  • Loading branch information
shiyuhang0 authored Dec 7, 2023
1 parent 0c51a47 commit 5ad3ed9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tidbcloud/prisma-adapter",
"version": "5.5.2",
"version": "5.6.0",
"description": "Prisma's driver adapter for \"@tidbcloud/serverless\"",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -32,7 +32,7 @@
"license": "Apache-2.0",
"sideEffects": false,
"dependencies": {
"@prisma/driver-adapter-utils": "5.5.2"
"@prisma/driver-adapter-utils": "5.6.0"
},
"devDependencies": {
"@tidbcloud/serverless": "^0.0.7",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/conversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export function fieldToColumnType(field: TiDBCloudColumnType): ColumnType {
case 'MEDIUMINT':
case 'UNSIGNED MEDIUMINT':
case 'INT':
case 'UNSIGNED INT':
case 'YEAR':
return ColumnTypeEnum.Int32
case 'UNSIGNED INT':
case 'BIGINT':
case 'UNSIGNED BIGINT':
return ColumnTypeEnum.Int64
Expand All @@ -69,7 +69,6 @@ export function fieldToColumnType(field: TiDBCloudColumnType): ColumnType {
case 'DECIMAL':
return ColumnTypeEnum.Numeric
case 'CHAR':
return ColumnTypeEnum.Char
case 'TINYTEXT':
case 'TEXT':
case 'MEDIUMTEXT':
Expand Down

0 comments on commit 5ad3ed9

Please sign in to comment.