Skip to content

Commit 1d8f5ab

Browse files
committed
Handle bit and binary
1 parent c007764 commit 1d8f5ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,12 @@ export function cast(field: Field, value: string | null): any {
404404
case 'TIME':
405405
case 'DATETIME':
406406
case 'TIMESTAMP':
407-
case 'BIT':
408-
case 'BINARY':
409407
case 'GEOMETRY':
410408
return value
411409
case 'BLOB':
410+
case 'BIT':
412411
case 'VARBINARY':
412+
case 'BINARY':
413413
return uint8Array(value)
414414
case 'JSON':
415415
return JSON.parse(decode(value))

0 commit comments

Comments
 (0)