If there is a default value for the tag, it will always be inserted.
kemokemo opened this issue · 0 comments
kemokemo commented
Procedure and issue
This is a sample.
- Insert
err = dbmap.Insert(&Comment{Name: "bob", Text: "Hello"})
- Instead of “bob” specified at the time of Insert, “No Name” specified as a default value by a tag is inserted into Name.
Environment
My operating environment is as follows.
- OS: macOS Catalina 10.15.1
- Go: Ver. 1.13.4
- gorp: 03c0a1b
- DB: PostgreSQL Ver. 12.0-2 on docker
Memo
This behavior seems to be related to the #209 .