We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[]byte(nil)
[]byte([])
Hello,
Seems like lib/pq changes []byte(nil) to []byte([]) before storing it in the database Refer to
lib/pq
pq/encode.go
Line 589 in 3d61320
Line 31 in 3d61320
It should be encoded to nil and store as NULL in the database
nil
NULL
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
Actual
Seems like
lib/pq
changes[]byte(nil)
to[]byte([])
before storing it in the databaseRefer to
pq/encode.go
Line 589 in 3d61320
pq/encode.go
Line 31 in 3d61320
Expected
It should be encoded to
nil
and store asNULL
in the databaseThe text was updated successfully, but these errors were encountered: