-
Notifications
You must be signed in to change notification settings - Fork 4
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
Null types #1
Comments
I tried to duplicate this problem in #2, but as far as I can tell the current code supports converting Could you give an example or test case that demonstrates the problem? I would be very happy to fix this. |
Of course, here is an example
|
Thank you for the example. I don't think the test is correct. Specifically, this line: assert.NotZero(t, value)
|
I'm sorry, my fault, you can all remove all asserts except the one that tests for the error (assert.NoError(t, err)). The test will still fail |
Thank you for the extra information. I've added support for NULL geometries in #2 and tagged version |
Thank you! |
Currently codec does not support scans of possible null geometries (returns the EOF error).
As a workaround I added this piece of code, but in this case we loose the ability to have non null geometries
(although it should be restricted on the DB side anyway).
If you are ok with this sollution please add it, or maybe there is a better one (e.g. separate type like NullGeometry)?
The text was updated successfully, but these errors were encountered: