mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-23 13:48:42 -05:00
Merge pull request #3653 from dolthub/james/geometry
selecting geometry types now show up in hex form, rather than raw ASCII
This commit is contained in:
@@ -313,25 +313,6 @@ func SqlColToStr(ctx context.Context, sqlType sql.Type, col interface{}) (string
|
||||
} else {
|
||||
return "false", nil
|
||||
}
|
||||
case sql.Point: //TODO: remove these when fixed in GMS
|
||||
buf := make([]byte, 25)
|
||||
WriteEWKBHeader(typedCol, buf)
|
||||
WriteEWKBPointData(typedCol, buf[9:])
|
||||
return string(buf), nil
|
||||
case sql.LineString:
|
||||
buf := make([]byte, 9+4+16*len(typedCol.Points))
|
||||
WriteEWKBHeader(typedCol, buf)
|
||||
WriteEWKBLineData(typedCol, buf[9:])
|
||||
return string(buf), nil
|
||||
case sql.Polygon:
|
||||
size := 0
|
||||
for _, l := range typedCol.Lines {
|
||||
size += 4 + 16*len(l.Points)
|
||||
}
|
||||
buf := make([]byte, 9+4+size)
|
||||
WriteEWKBHeader(typedCol, buf)
|
||||
WriteEWKBPolyData(typedCol, buf[9:])
|
||||
return string(buf), nil
|
||||
default:
|
||||
res, err := sqlType.SQL(nil, col)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user