Skip to content

When using rows.Values(), how can I check if one of the individual values was NULL without resorting to using .Scan()? #2188

Closed Answered by jackc
ecerulm asked this question in Q&A
Discussion options

You must be logged in to vote

In the case of a nullable boolean PostgreSQL column, I would expect you to get true, false, or nil.

If that's not the case, please provide sample code that demonstrates this behavior.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ecerulm
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants