-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
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
Error: on NULL from DB #122
Comments
This is most likely related to the driver you are using, which dialect are you using? If you're using |
postgres. In v6 is working =) If add field Photo to User struct:
Error will be |
Ok I found the issue, Im working on a fix. I should note for both of your use cases I would recommend using the Null types provided by the sql and pq modules. See https://golang.org/pkg/database/sql/#NullString and https://godoc.org/github.com/lib/pq#NullTime |
Fix has been merged and released as |
Error: sql: Scan error on column index 1, name "deleted_at": unsupported Scan, storing driver.Value type into type *time.Time
//sql: INSERT INTO public.users (id, email, name, password, deleted_at, created_at) VALUES ('4792668f-d192-4dd7-9c47-a70e1e15c602', 'simple@auth.xx', 'Simple', '$2a$08$iNL1iAhLRNSWiJbvuwXTTeTOsBmhZMZnXIlL01twyXwmy9hZeevSi', null, '2019-08-02 11:01:57.908624');
The text was updated successfully, but these errors were encountered: