Skip to content

Commit 218b85c

Browse files
committed
Geometry is binary data
1 parent b59368d commit 218b85c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
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 'GEOMETRY':
408407
return value
409408
case 'BLOB':
410409
case 'BIT':
411410
case 'VARBINARY':
412411
case 'BINARY':
412+
case 'GEOMETRY':
413413
return uint8Array(value)
414414
case 'JSON':
415415
return value ? JSON.parse(decode(value)) : value

0 commit comments

Comments
 (0)