/ Check-in [64c3ee3c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add extra test case to altertab.test.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 64c3ee3c255e4630ccd5002116d66fd2af6b12dbdd4a3bee5ed413c3ef87d33a
User & Date: dan 2018-09-07 18:56:31
Context
2018-09-07
19:12
Remove a faulty ALWAYS() macro added by check-in [8fa254aa6329bdd0]. check-in: fc47316e user: drh tags: trunk
18:56
Add extra test case to altertab.test. check-in: 64c3ee3c user: dan tags: trunk
18:52
Add assert() and ALWAYS() to identify two unreachable branches. check-in: 8fa254aa user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/altertab.test.

   387    387   }
   388    388   
   389    389   do_execsql_test 12.2 {
   390    390     INSERT INTO t3 VALUES('WWW');
   391    391     SELECT * FROM t1;
   392    392   } {WWW}
   393    393   
          394  +
          395  +#-------------------------------------------------------------------------
          396  +reset_db
          397  +do_execsql_test 13.0 {
          398  +  CREATE TABLE t1(x, y);
          399  +  CREATE TABLE t2(a, b);
          400  +  CREATE TABLE log(c);
          401  +  CREATE TRIGGER tr1 AFTER INSERT ON t1 BEGIN
          402  +    INSERT INTO log SELECT y FROM t1, t2;
          403  +  END;
          404  +}
          405  +
          406  +do_execsql_test 13.1 {
          407  +  INSERT INTO t1 VALUES(1, 2);
          408  +}
          409  +
          410  +do_catchsql_test 13.2 {
          411  +  ALTER TABLE t2 RENAME b TO y;
          412  +} {1 {error in trigger tr1 after rename: ambiguous column name: y}}
          413  +
   394    414   finish_test
   395    415