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

save issue #58

Open
littletwolee opened this issue Jan 6, 2017 · 0 comments
Open

save issue #58

littletwolee opened this issue Jan 6, 2017 · 0 comments

Comments

@littletwolee
Copy link

hi astaxie,
Our team used your beedb. But there is a problem in save func. Our model like this

type User struct {
Id int 'sql:"id"'
UserId string 'sql:"user_id"'
User_Pwd 'sql:"user_pwd"'
}

When we save it into mysql, it return a error say Unable_ to save because primary key Id was not found in struct. But Id is a PK in this table already.
When we change struct like this

type User struct {
Id int
UserId string 'sql:"user_id"'
User_Pwd 'sql:"user_pwd"'
}

It will work. Please tell us what's problem in it, thx very much
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