mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Add UPDATE tests
This commit is contained in:
parent
4673e38dcb
commit
4b0b119f70
1 changed files with 19 additions and 0 deletions
|
@ -69,6 +69,25 @@ do_execsql_test_on_specific_db {:memory:} update-null {
|
|||
} {10|1|2
|
||||
3|4|5}
|
||||
|
||||
do_execsql_test_on_specific_db {:memory:} update-not-null-1 {
|
||||
create table temp (a,b not null,c);
|
||||
insert into temp values (1, 2, 3);
|
||||
update temp set b = 999;
|
||||
select * from temp;
|
||||
} {1|999|3}
|
||||
|
||||
do_execsql_test_in_memory_any_error update-not-null-2 {
|
||||
create table temp (a,b not null,c);
|
||||
insert into temp values (1, 2, 3);
|
||||
update temp set b = NULL;
|
||||
}
|
||||
|
||||
do_execsql_test_on_specific_db {:memory:} update-not-null-3 {
|
||||
create table temp (a not null, b not null, c not null);
|
||||
update temp set a = null, b = null, c = null;
|
||||
select * from temp;
|
||||
} {}
|
||||
|
||||
do_execsql_test_on_specific_db {:memory:} update-mixed-types {
|
||||
create table temp (a);
|
||||
insert into temp values (1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue