-
Notifications
You must be signed in to change notification settings - Fork 21.9k
using #joins
does not imply readonly = true
.
#10769
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
using #joins
does not imply readonly = true
.
#10769
Conversation
@rafaelfranca @jonleighton can you take a look? |
@neerajdotname maybe you could also take a look? |
I personally find that
Finding out all the cases were @senny while you are at it, please also cleanup usage of Add something like this to change log
I'm +1 on this PR. |
@senny is it marked as readonly with explicit |
@rafaelfranca if there is any select then Parsing the select statement to see which of the columns belong to primary table and which ones belong to join table will be brittle and error-prone. Hence my take that lets leave it upto the user. |
👍 to this as it's the approach taken with the |
@neerajdotname I removed the references from |
Seems good. We need to add this to the upgrading guide too. (Better to start soon) |
@senny looks good. +1 from me. |
@rafaelfranca what do you want to have covered in the guides? you no longer need |
…donly_records using `#joins` does not imply `readonly = true`.
Fixes #10615
Before this patch using
#joins
resulted in areadonly
result. However the executed query only selects the columns from the primary table. For example:As far as I can tell there is no reason we need to mark these records as
readonly
.