Skip to content

Commit

Permalink
Opt SET and ENUM type (#58)
Browse files Browse the repository at this point in the history
* opt type

* opt type

* version
  • Loading branch information
shiyuhang0 authored Mar 14, 2024
1 parent b792081 commit ee323b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tidbcloud/serverless",
"version": "0.1.0",
"version": "0.1.1",
"description": "TiDB Cloud Serverless Driver",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ export function cast(field: Field, value: string | null, decoder: Decoders): any
case 'FLOAT':
case 'DOUBLE':
return parseFloat(value)
// set and enum will be converted to char.
case 'BIGINT':
case 'UNSIGNED BIGINT':
case 'DECIMAL':
case 'SET':
case 'ENUM':
case 'CHAR':
case 'VARCHAR':
case 'TEXT':
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const Version = '0.1.0'
export const Version = '0.1.1'

0 comments on commit ee323b9

Please sign in to comment.