Skip to content

Conversation

@burner-account
Copy link

First: Thanks for the awesome lib!

sql.NullBool has a different internal structure

NullBool.Value is the Valuer interface func, not the storage.

// NullBool represents a bool that may be null.
// NullBool implements the [Scanner] interface so
// it can be used as a scan destination, similar to [NullString].
type NullBool struct {
	Bool  bool
	Valid bool // Valid is true if Bool is not NULL
}
``

sql.NullBool has a different internal structure

NullBool.Value is the Valuer interface func, not the storage.

```
// NullBool represents a bool that may be null.
// NullBool implements the [Scanner] interface so
// it can be used as a scan destination, similar to [NullString].
type NullBool struct {
	Bool  bool
	Valid bool // Valid is true if Bool is not NULL
}
``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant