Skip to content
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

If there is a default value for the tag, it will always be inserted. #408

Open
kemokemo opened this issue Nov 3, 2019 · 0 comments
Open

Comments

@kemokemo
Copy link

kemokemo commented Nov 3, 2019

Procedure and issue

This is a sample.

  1. Insert
err = dbmap.Insert(&Comment{Name: "bob", Text: "Hello"})
  1. Instead of “bob” specified at the time of Insert, “No Name” specified as a default value by a tag is inserted into Name.

スクリーンショット 2019-11-03 23 13 36

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 .

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

No branches or pull requests

1 participant