Skip to content

Crash when selecting NULL for GEOGRAPHY/GEOMETRY data type #553

Open
@robverschoor

Description

@robverschoor

This sequence crashes in v.1.8.1 (and 1.8.0, other versions not tested). Same for GEOMETRY type.
Occurs both on Windows and Linux.

1> declare @v geography
2> select @v
3> go
panic: not implemented makeGoLangScanType for type 240

goroutine 1 [running]:
github.com/microsoft/go-mssqldb.makeGoLangScanType({0xf0, 0x0, 0x21, 0xffff, 0x0, 0x0, {0xc0004d0000, 0xffff, 0xffff}, {
0x0, ...}, ...})
        /go/pkg/mod/github.com/microsoft/[email protected]/types.go:1141 +0xd74
github.com/microsoft/go-mssqldb.(*Rowsq).ColumnTypeScanType(0x1ef3450?, 0x1494100?)
        /go/pkg/mod/github.com/microsoft/[email protected]/mssql.go:1448 +0x185
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions