Skip to content

Commit ee323b9

Browse files
authored
Opt SET and ENUM type (#58)
* opt type * opt type * version
1 parent b792081 commit ee323b9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tidbcloud/serverless",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "TiDB Cloud Serverless Driver",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.js",

src/decode.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ export function cast(field: Field, value: string | null, decoder: Decoders): any
2626
case 'FLOAT':
2727
case 'DOUBLE':
2828
return parseFloat(value)
29-
// set and enum will be converted to char.
3029
case 'BIGINT':
3130
case 'UNSIGNED BIGINT':
3231
case 'DECIMAL':
32+
case 'SET':
33+
case 'ENUM':
3334
case 'CHAR':
3435
case 'VARCHAR':
3536
case 'TEXT':

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const Version = '0.1.0'
1+
export const Version = '0.1.1'

0 commit comments

Comments
 (0)