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

sql: disallow explicit unique checks under read committed isolation #110879

Merged
merged 1 commit into from Sep 28, 2023

Commits on Sep 27, 2023

  1. sql: disallow explicit unique checks under read committed isolation

    Because we do not yet support predicate locking, add a check to
    execbuilder that disallows any query using it (currently only unique
    checks under read committed isolation).
    
    Informs: cockroachdb#110873
    
    Release note (sql): We do not yet support explicit unique checks under
    Read Committed isolation. This means that some `INSERT`, `UPDATE`, and
    `UPSERT` statements against some `REGIONAL BY ROW` tables will fail
    under Read Committed isolation with the following error:
    
    ```
    unimplemented: explicit unique checks are not yet supported under read committed isolation
    SQLSTATE: 0A000
    ```
    
    For more details about which `REGIONAL BY ROW` tables are affected,
    please see: https://go.crdb.dev/issue-v/110873/v23.2
    michae2 committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    d0c46fe View commit details
    Browse the repository at this point in the history