Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
robverschoor opened this issue Nov 21, 2024 · 0 comments
Open

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

robverschoor opened this issue Nov 21, 2024 · 0 comments

Comments

@robverschoor
Copy link

robverschoor commented Nov 21, 2024

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/go-mssqldb@v1.7.2/types.go:1141 +0xd74
github.com/microsoft/go-mssqldb.(*Rowsq).ColumnTypeScanType(0x1ef3450?, 0x1494100?)
        /go/pkg/mod/github.com/microsoft/go-mssqldb@v1.7.2/mssql.go:1448 +0x185
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant