Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lunny
Copy link
Contributor

@lunny lunny commented Apr 22, 2022

For xorm, some usage is wrong.

  • Update should have a condition, otherwise it will update all the records
  • Read should use id as condition to get one record from database and disable automatically conditions from the struct.

@efectn efectn merged commit c9678ec into efectn:master Apr 22, 2022
@lunny lunny deleted the lunny/fix_xorm_update branch April 22, 2022 16:31
@efectn
Copy link
Owner

efectn commented Apr 22, 2022

Hi @lunny. XORM gives ID condition is error, expect 0 primarykeys, there are 1 after this changes. Can you check it? Thanks

@lunny lunny mentioned this pull request Apr 23, 2022
@lunny
Copy link
Contributor Author

lunny commented Apr 23, 2022

Hi @lunny. XORM gives ID condition is error, expect 0 primarykeys, there are 1 after this changes. Can you check it? Thanks

I have sent #3 to fix that.

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

Successfully merging this pull request may close these issues.

2 participants