should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,49 @@
# name: test/issues/rigger/test_514.test
# description: Issue 514
# group: [rigger]
statement ok
PRAGMA enable_verification
# Incorrect result after an INSERT violates a UNIQUE constraint
statement ok
CREATE TABLE t0(c0 INT);
statement ok
CREATE UNIQUE INDEX i0 ON t0(c0);
statement ok
INSERT INTO t0(c0) VALUES (1);
query I
SELECT * FROM t0 WHERE t0.c0 = 1;
----
1
statement error
INSERT INTO t0(c0) VALUES (1);
----
<REGEX>:Constraint Error.*Duplicate key.*
query I
SELECT * FROM t0 WHERE t0.c0 = 1;
----
1
# verify correct behavior here too when we have multiple nodes
statement ok
INSERT INTO t0(c0) VALUES (2);
statement ok
INSERT INTO t0(c0) VALUES (3);
statement error
INSERT INTO t0(c0) VALUES (2);
----
<REGEX>:Constraint Error.*Duplicate key.*
query I
SELECT * FROM t0 WHERE t0.c0 = 2;
----
2