We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://gorm.io/docs/v2_release_note.html
In v1.0, I've used gorm:query_option to do a locking read, as in:
db = db.Set("gorm:query_option", "FOR UPDATE") db.Where("ID = ?", id).First(&customer)
This still compiles in v2 but has no effect and leads to subtle bugs.
Please add this issue to the migration guide and point to the documentation on locking reads.
The text was updated successfully, but these errors were encountered:
this feature is not documented in v1, so it is not mentioned in the release note.
Sorry, something went wrong.
jinzhu
No branches or pull requests
Document Link
https://gorm.io/docs/v2_release_note.html
Your Question
In v1.0, I've used gorm:query_option to do a locking read, as in:
This still compiles in v2 but has no effect and leads to subtle bugs.
Expected answer
Please add this issue to the migration guide and point to the documentation on locking reads.
The text was updated successfully, but these errors were encountered: