Skip to content

Commit ae3d131

Browse files
author
James Cor
committed
type check
1 parent f4b5a8a commit ae3d131

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

sql/types/linestring.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ type LineString struct {
4040
}
4141

4242
var _ sql.Type = LineStringType{}
43+
var _ sql.ValueType = LineStringType{}
4344
var _ sql.SpatialColumnType = LineStringType{}
4445
var _ sql.CollationCoercible = LineStringType{}
4546
var _ GeometryValue = LineString{}

sql/types/multilinestring.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ var (
4747
)
4848

4949
var _ sql.Type = MultiLineStringType{}
50+
var _ sql.ValueType = MultiLineStringType{}
5051
var _ sql.SpatialColumnType = MultiLineStringType{}
5152
var _ sql.CollationCoercible = MultiLineStringType{}
5253
var _ GeometryValue = MultiLineString{}

sql/types/multipoint.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type MultiPoint struct {
4141
}
4242

4343
var _ sql.Type = MultiPointType{}
44+
var _ sql.ValueType = MultiPointType{}
4445
var _ sql.SpatialColumnType = MultiPointType{}
4546
var _ sql.CollationCoercible = MultiPointType{}
4647
var _ GeometryValue = MultiPoint{}

sql/types/multipolygon.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ var (
4747
)
4848

4949
var _ sql.Type = MultiPolygonType{}
50+
var _ sql.ValueType = MultiPolygonType{}
5051
var _ sql.SpatialColumnType = MultiPolygonType{}
5152
var _ sql.CollationCoercible = MultiPolygonType{}
5253
var _ GeometryValue = MultiPolygon{}

sql/types/polygon.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type Polygon struct {
4141
}
4242

4343
var _ sql.Type = PolygonType{}
44+
var _ sql.ValueType = PolygonType{}
4445
var _ sql.SpatialColumnType = PolygonType{}
4546
var _ sql.CollationCoercible = PolygonType{}
4647
var _ GeometryValue = Polygon{}

0 commit comments

Comments
 (0)