From 2dec7b725518d71923de4bc00c0ccdd955d357d2 Mon Sep 17 00:00:00 2001 From: PThorpe92 Date: Sun, 23 Mar 2025 20:12:10 -0400 Subject: [PATCH] Add more test cases for update --- testing/update.test | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/testing/update.test b/testing/update.test index d3a33a772..20a23f4a6 100755 --- a/testing/update.test +++ b/testing/update.test @@ -102,6 +102,15 @@ do_execsql_test_on_specific_db {:memory:} update-self-reference { } {10|10 2|20} +do_execsql_test_on_specific_db {:memory:} update-self-ref-all { + create table temp (a, b, c); + insert into temp values (1, 2, 3); + insert into temp values (4, 5, 6); + update temp set a = b; + select * from temp; +} {2|2|3 +5|5|6} + do_execsql_test_on_specific_db {:memory:} update-large-text { create table temp (a); insert into temp values ('short'); @@ -144,3 +153,13 @@ do_execsql_test_on_specific_db {:memory:} update-multiple-columns { select * from temp; } {10|20|30 10|20|30} + +do_execsql_test_on_specific_db {:memory:} update-true-expr { + create table temp (a, b, c); + insert into temp values (1, 2, 3); + insert into temp values (4, 5, 6); + update temp set a = 10, b = 20, c = 30 where 1; + select * from temp; +} {10|20|30 +10|20|30} +