Bug: none/null
value from surrealdb doesn't map to nil
value for golang pointers
#176
Open
2 tasks done
Labels
bug
Something isn't working
Describe the bug
none/null
value from surrealdb doesn't map tonil
value for golang pointersIf a field is defined as type
option<bool>
withnone
value, the golang struct for that field isIsDefault *bool
, version v0.2.1 will mapnil
value toIsDefault
, new version v0.3.0 will map*bool(false)
toIsDefault
.My app has tristate values whereas
nil
value is meaningfulSteps to reproduce
Expected behaviour
IsDefault is
nil
value, not*bool(false)
SurrealDB version
surreal 2.0.4
Contact Details
No response
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: