mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-07-07 20:45:01 +00:00
add test
This commit is contained in:
parent
738e2cc06c
commit
ae569fbd7d
1 changed files with 7 additions and 0 deletions
|
@ -253,3 +253,10 @@ do_execsql_test_in_memory_any_error update_primary_key_unique_constraint_error {
|
|||
INSERT INTO t(b) VALUES (100), (200), (300);
|
||||
UPDATE t SET b = 2;
|
||||
}
|
||||
|
||||
do_execsql_test_on_specific_db {:memory:} update-single-rowid {
|
||||
CREATE TABLE t(x INTEGER PRIMARY KEY);
|
||||
INSERT INTO t VALUES (1);
|
||||
UPDATE t SET x = 2 WHERE x = 1;
|
||||
SELECT * FROM t;
|
||||
} {2}
|
Loading…
Add table
Add a link
Reference in a new issue