Closed bastiankoetsier closed 2 months ago
Can you provide a minimal example (with code) that demonstrates the problem?
(thanks for the swift reply!) I tried to follow this https://docs.sqlc.dev/en/latest/reference/datatypes.html#using-github-com-twpayne-go-geom
The schema is super big but this is basically the column definition: geometry(MultiLineStringZ, 25833)
When I try to run the query I get
can't scan into dest[22]: cannot scan NULL into *geom.MultiPolygon
Let me know if you need any other info!
okay, I trimmed it down to only one column that gets returned. Now I am getting:
can't scan into dest[0]: cannot scan unknown type (OID 83165) in text format into *geom.MultiPolygon
You are calling github.com/twpayne/pgx-geom.Register
, right?
yeah of course not .... 🙈 After I figured out I need only single Polygon instead of the multi-variant, it was working as expected. Thank you very much for your help, highly appreciated!
Hey there, first of all thank you for your amazing library!
I do have a question regarding a very specific scenario: My Column in my postgres/postgis db is a
geometry(MultiLineStringZ, 25833)
and I trying to use sqlc to generate my db code by overriding the specific type for this column with your MultiLineString typew provided by this package. Unfortunately, sqlc does not seem to understand this 😞 For my limited understanding of postgis so far, this should be working but I might be totally off here 😅 Any hints are appreciated!Greetings from Berlin!