mirror of
https://github.com/chaisql/chai.git
synced 2025-09-26 19:51:21 +08:00
7 lines
169 B
SQL
7 lines
169 B
SQL
-- setup:
|
|
CREATE TABLE test(a int UNIQUE);
|
|
|
|
-- test: conflict
|
|
INSERT INTO test VALUES (1), (2);
|
|
UPDATE test SET a = 2 WHERE a = 1;
|
|
-- error: UNIQUE constraint error: [a] |