3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #***********************************************************************
12 # This file implements tests to verify that ticket [4ef7e3cfca] has been
16 set testdir [file dirname $argv0]
17 source $testdir/tester.tcl
18 set testprefix tkt-4ef7e3cfca
20 do_catchsql_test 1.1 {
22 CREATE TRIGGER t AFTER INSERT ON x BEGIN
23 SELECT * FROM x WHERE abc.a = 1;
25 INSERT INTO x VALUES('assert');
26 } {1 {no such column: abc.a}}
35 INSERT INTO x(a) VALUES(5);
36 INSERT INTO y(a) VALUES(10);
38 CREATE TRIGGER t AFTER INSERT ON w BEGIN
40 SELECT (SELECT x.a + y.a FROM y) FROM x;
42 INSERT INTO w VALUES('incorrect');
55 INSERT INTO x(b) VALUES(5);
56 INSERT INTO y(a) VALUES(10);
58 CREATE TRIGGER t AFTER INSERT ON w BEGIN
60 SELECT (SELECT x.b + y.a FROM y) FROM x;
62 INSERT INTO w VALUES('assert');