-
|
Hello. I'm using native sql package with pgx as driver. In database table I have In those cases when my function receives I tried to use The only option I see here is explicitly calling |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Go I would have expected it to work with |
Beta Was this translation helpful? Give feedback.
Go
nilvalues are always considered as SQLNULL. This happens before any methods on the type are called.I would have expected it to work with
stringas the underlying value though. Thezeronull.Texttype value automatically translates""toNULL. You should be able to adapt that to translate""to{}.