-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
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: #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
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# LogicTest: !local-mixed-22.2-23.1 | ||
|
||
statement ok | ||
SET CLUSTER SETTING sql.txn.read_committed_syntax.enabled = true | ||
|
||
statement ok | ||
SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL READ COMMITTED | ||
|
||
statement ok | ||
CREATE TABLE sharded_primary ( | ||
a INT NOT NULL, | ||
PRIMARY KEY (a) USING HASH | ||
) | ||
|
||
statement ok | ||
CREATE TABLE sharded_unique ( | ||
a INT NOT NULL | ||
) | ||
|
||
statement ok | ||
CREATE UNIQUE INDEX ON sharded_unique (a) USING HASH | ||
|
||
statement ok | ||
INSERT INTO sharded_primary VALUES (1) | ||
|
||
statement ok | ||
INSERT INTO sharded_unique VALUES (1) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.