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

Clauses(clause.Locking{Strength: "UPDATE"}) return err : clause FOR is banned #265

Closed
gozelus opened this issue Dec 1, 2021 · 3 comments · Fixed by #269
Closed

Clauses(clause.Locking{Strength: "UPDATE"}) return err : clause FOR is banned #265

gozelus opened this issue Dec 1, 2021 · 3 comments · Fixed by #269
Assignees

Comments

@gozelus
Copy link

gozelus commented Dec 1, 2021

Your Question

How to use for update in gen ?
When I use Clauses(clause.Locking{Strength: "UPDATE"}).Find() just like in gorm, I got a err clause FOR is banned

@tr1v3r
Copy link
Member

tr1v3r commented Dec 2, 2021

yeah, clause.Locking has SQL injection risk, i will fix it ASAP

@tr1v3r
Copy link
Member

tr1v3r commented Dec 2, 2021

upgrade to v0.1.28 can fix it

@gozelus
Copy link
Author

gozelus commented Dec 8, 2021

upgrade to v0.1.28 can fix it

great!

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 a pull request may close this issue.

2 participants