-
Notifications
You must be signed in to change notification settings - Fork 901
Closed
Labels
📚 postgresqldocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
Milestone
Description
The following SQL:
CREATE TABLE test_table (
geometry_column GEOMETRY
);
yields the following error when using 'sqlc generate':
2020/01/07 11:33:35 unknown Postgres type: geometry
2020/01/07 11:33:35 unknown Postgres type: geometry
2020/01/07 11:33:35 unknown Postgres type: geometry
2020/01/07 11:33:35 unknown Postgres type: geometry
2020/01/07 11:33:35 unknown Postgres type: geometry
2020/01/07 11:33:35 unknown Postgres type: geometry
2020/01/07 11:33:35 unknown Postgres type: geometry
2020/01/07 11:33:35 unknown Postgres type: geometry
2020/01/07 11:33:35 unknown Postgres type: geometry
2020/01/07 11:33:35 unknown Postgres type: geometry
It would be fantastic if geometry could default to simply use the sql.NullString for now.
If it is added, it allows me to reference the geometry type from https://github.com/paulmach/go.geojson as the type override (at the package level). Rather than having to reference each geometry column separately if I want to override the type.
tschaub, chaitan94, vidarlx and andyli
Metadata
Metadata
Assignees
Labels
📚 postgresqldocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request