-C Improved\scoverage\sfor\sinsert.c.\s(CVS\s2213)
-D 2005-01-15T00:36:37
+C Improved\stest\scoverage\sfor\supdate.c.\s(CVS\s2214)
+D 2005-01-15T00:40:43
F Makefile.in 6ce51dde6a8fe82fc12f20dec750572f6a19f56a
F Makefile.linux-gcc a9e5a0d309fa7c38e7c14d3ecf7690879d3a5457
F README a01693e454a00cc117967e3f9fdab2d4d52e9bc1
F test/types.test f0a98d10c5ecc9865d19dc94486f9873afc6bb6b
F test/types2.test f23c147a2ab3e51d5dbcfa9987200db5acba7aa7
F test/unique.test 0e38d4cc7affeef2527720d1dafd1f6870f02f2b
-F test/update.test b29bd9061a1150426dab6959806fcc73a41b1217
+F test/update.test 5d9b7451c991f24f64e0955595be4bc449c1017d
F test/utf16.test 459c2f5ab80c60092c603630a348c32d6e59c558
F test/vacuum.test f18eccdee5b538d46298c64d6a060cfbf97bbc23
F test/varint.test ab7b110089a08b9926ed7390e7e97bdefeb74102
F www/vdbe.tcl 095f106d93875c94b47367384ebc870517431618
F www/version3.tcl 092a01f5ef430d2c4acc0ae558d74c4bb89638a0
F www/whentouse.tcl c3b50d3ac31c54be2a1af9b488a89d22f1e6e746
-P 183c42eac82b41da7905e44a43913f04acc46ade
-R a357aa122ea9a3e8dc5bb5808b1b049d
+P 997d8afff9b316aef4c5e2127c2207758ff4a703
+R f72aab18ccb7f1e272e72a0b220a767c
U drh
-Z 599dc5adeb716baa4dcd266377de3b9f
+Z 1ce583b41471899cabfc5a365dbcd8c6
-997d8afff9b316aef4c5e2127c2207758ff4a703
\ No newline at end of file
+3ef95d5fe98e7451f8b87b3f5259163f3e7d0289
\ No newline at end of file
# This file implements regression tests for SQLite library. The
# focus of this file is testing the UPDATE statement.
#
-# $Id: update.test,v 1.15 2004/02/10 13:41:53 drh Exp $
+# $Id: update.test,v 1.16 2005/01/15 00:40:43 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
integrity_check update-13.6
+ifcapable {trigger} {
+# Test for proper detection of malformed WHEN clauses on UPDATE triggers.
+#
+do_test update-14.1 {
+ execsql {
+ CREATE TABLE t3(a,b,c);
+ CREATE TRIGGER t3r1 BEFORE UPDATE on t3 WHEN nosuchcol BEGIN
+ SELECT 'illegal WHEN clause';
+ END;
+ }
+} {}
+do_test update-14.2 {
+ catchsql {
+ UPDATE t3 SET a=1;
+ }
+} {1 {no such column: nosuchcol}}
+do_test update-14.3 {
+ execsql {
+ CREATE TABLE t4(a,b,c);
+ CREATE TRIGGER t4r1 AFTER UPDATE on t4 WHEN nosuchcol BEGIN
+ SELECT 'illegal WHEN clause';
+ END;
+ }
+} {}
+do_test update-14.4 {
+ catchsql {
+ UPDATE t4 SET a=1;
+ }
+} {1 {no such column: nosuchcol}}
+
+} ;# ifcapable {trigger}
+
finish_test