diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 17:30:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 17:30:13 +0000 |
commit | 5e33abd9c783fe2b9deae602544f1f6f0889958a (patch) | |
tree | 120f37dcc1339c59c97cd336badef4633015ec23 /test/trigger9.test | |
parent | Adding upstream version 3.45.2. (diff) | |
download | sqlite3-5e33abd9c783fe2b9deae602544f1f6f0889958a.tar.xz sqlite3-5e33abd9c783fe2b9deae602544f1f6f0889958a.zip |
Adding upstream version 3.45.3.upstream/3.45.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/trigger9.test')
-rw-r--r-- | test/trigger9.test | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/test/trigger9.test b/test/trigger9.test index 6e31d1a..47940de 100644 --- a/test/trigger9.test +++ b/test/trigger9.test @@ -242,12 +242,27 @@ do_execsql_test 4.1 { END; } -do_catchsql_test 4.2 { - DELETE FROM v1 WHERE rowid=1; -} {1 {no such column: rowid}} +ifcapable !allow_rowid_in_view { + do_catchsql_test 4.2 { + DELETE FROM v1 WHERE rowid=1; + } {1 {no such column: rowid}} -do_catchsql_test 4.3 { - UPDATE v1 SET a=b WHERE rowid=2; -} {1 {no such column: rowid}} + do_catchsql_test 4.3 { + UPDATE v1 SET a=b WHERE rowid=2; + } {1 {no such column: rowid}} +} else { + do_execsql_test 4.2a { + DELETE FROM log; + } + do_catchsql_test 4.2 { + DELETE FROM v1 WHERE rowid=1; + } {0 {}} + do_catchsql_test 4.3 { + UPDATE v1 SET a=b WHERE rowid=2; + } {0 {}} + do_execsql_test 4.3b { + SELECT * FROM log; + } +} finish_test |