Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: third_party/sqlite/src/test/e_droptrigger.test

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # 2010 November 29 1 # 2010 November 29
2 # 2 #
3 # The author disclaims copyright to this source code. In place of 3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing: 4 # a legal notice, here is a blessing:
5 # 5 #
6 # May you do good and not evil. 6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others. 7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give. 8 # May you share freely, never taking more than you give.
9 # 9 #
10 #*********************************************************************** 10 #***********************************************************************
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 CREATE TABLE aux.t3(a, b); 63 CREATE TABLE aux.t3(a, b);
64 INSERT INTO t3 VALUES('a', 'b'); 64 INSERT INTO t3 VALUES('a', 'b');
65 CREATE TRIGGER aux.tr1 BEFORE $event ON t3 BEGIN SELECT r('aux.tr1') ; END; 65 CREATE TRIGGER aux.tr1 BEFORE $event ON t3 BEGIN SELECT r('aux.tr1') ; END;
66 CREATE TRIGGER aux.tr2 AFTER $event ON t3 BEGIN SELECT r('aux.tr2') ; END; 66 CREATE TRIGGER aux.tr2 AFTER $event ON t3 BEGIN SELECT r('aux.tr2') ; END;
67 CREATE TRIGGER aux.tr3 AFTER $event ON t3 BEGIN SELECT r('aux.tr3') ; END; 67 CREATE TRIGGER aux.tr3 AFTER $event ON t3 BEGIN SELECT r('aux.tr3') ; END;
68 " 68 "
69 } 69 }
70 70
71 71
72 # EVIDENCE-OF: R-52650-16855 -- syntax diagram drop-trigger-stmt 72 # -- syntax diagram drop-trigger-stmt
73 # 73 #
74 do_droptrigger_tests 1.1 -repair { 74 do_droptrigger_tests 1.1 -repair {
75 droptrigger_reopen_db 75 droptrigger_reopen_db
76 } -tclquery { 76 } -tclquery {
77 list_all_triggers 77 list_all_triggers
78 } { 78 } {
79 1 "DROP TRIGGER main.tr1" 79 1 "DROP TRIGGER main.tr1"
80 {main.tr2 temp.tr1 aux.tr1 aux.tr2 aux.tr3} 80 {main.tr2 temp.tr1 aux.tr1 aux.tr2 aux.tr3}
81 2 "DROP TRIGGER IF EXISTS main.tr1" 81 2 "DROP TRIGGER IF EXISTS main.tr1"
82 {main.tr2 temp.tr1 aux.tr1 aux.tr2 aux.tr3} 82 {main.tr2 temp.tr1 aux.tr1 aux.tr2 aux.tr3}
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 execsql "DROP TABLE t1" 209 execsql "DROP TABLE t1"
210 list_all_triggers 210 list_all_triggers
211 } {main.tr1 main.tr2 aux.tr1 aux.tr2 aux.tr3} 211 } {main.tr1 main.tr2 aux.tr1 aux.tr2 aux.tr3}
212 do_test 4.4 { 212 do_test 4.4 {
213 droptrigger_reopen_db 213 droptrigger_reopen_db
214 execsql "DROP TABLE t1" 214 execsql "DROP TABLE t1"
215 list_all_triggers 215 list_all_triggers
216 } {main.tr1 main.tr2 aux.tr1 aux.tr2 aux.tr3} 216 } {main.tr1 main.tr2 aux.tr1 aux.tr2 aux.tr3}
217 217
218 finish_test 218 finish_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698