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

release-24.1: optbuilder: subject SELECT FOR UPDATE to sql_safe_updates #121466

Merged
merged 1 commit into from
Apr 3, 2024

Commits on Apr 3, 2024

  1. optbuilder: subject SELECT FOR UPDATE to sql_safe_updates

    Fixes: #110131
    
    Release note (sql change): With sql_safe_updates set to true, SELECT FOR UPDATE and
    SELECT FOR SHARE statements now return an error if they do not contain
    either a WHERE clause or LIMIT clause.
    
    Also, UPDATE and DELETE statements without WHERE clauses but with LIMIT
    clauses now bypass sql_safe_updates, which better matches MySQL
    behavior.
    michae2 committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    0278ec4 View commit details
    Browse the repository at this point in the history