From: dan Date: Sat, 14 Aug 2010 05:04:47 +0000 (+0000) Subject: Test that it is possible to drop a trigger while there are active statements belongin... X-Git-Tag: version-3.7.2~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98530cac13581df895c67caa6f501ddcd7bea523;p=thirdparty%2Fsqlite.git Test that it is possible to drop a trigger while there are active statements belonging to the same connection. FossilOrigin-Name: d4ec61e2547200aa92a26c1f270682ed67edc241 --- diff --git a/manifest b/manifest index 7d2a0c06a1..777a8cdfb7 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Add\stests\sto\stest\sfile\se_expr.test. -D 2010-08-13T18:41:09 +C Test\sthat\sit\sis\spossible\sto\sdrop\sa\strigger\swhile\sthere\sare\sactive\sstatements\sbelonging\sto\sthe\ssame\sconnection. +D 2010-08-14T05:04:48 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.in ec08dc838fd8110fe24c92e5130bcd91cbb1ff2e F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 @@ -750,7 +750,7 @@ F test/trigger8.test 30cb0530bd7c4728055420e3f739aa00412eafa4 F test/trigger9.test 5b0789f1c5c4600961f8e68511b825b87be53e31 F test/triggerA.test eaf11a29db2a11967d2d4b49d37f92bce598194e F test/triggerB.test 56780c031b454abac2340dbb3b71ac5c56c3d7fe -F test/triggerC.test cac41fe31adc1abb9fa08532762fc2b4f662ab03 +F test/triggerC.test 2a23edcc00684d084902ba5ec93e721775c3a70a F test/triggerD.test c6add3817351451e419f6ff9e9a259b02b6e2de7 F test/types.test 9a825ec8eea4e965d7113b74c76a78bb5240f2ac F test/types2.test 3555aacf8ed8dc883356e59efc314707e6247a84 @@ -843,7 +843,7 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f -P 497aafd8ed6a636a8bd5fa2cad265a20593ee34f -R f6d0c1ed7d5a218762ae4f3a6bffc24d +P 3fd1059e25a8d0cccbb30fc55b03d172bd9eb9b7 +R b423d9d4abd338dea421815e4c26cfb8 U dan -Z 2fd985318d5073be48e0a663ee3f56cf +Z aec16a7277de53c01dc058787ce2fa53 diff --git a/manifest.uuid b/manifest.uuid index a4fd9be706..2e82fc1dc3 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -3fd1059e25a8d0cccbb30fc55b03d172bd9eb9b7 \ No newline at end of file +d4ec61e2547200aa92a26c1f270682ed67edc241 \ No newline at end of file diff --git a/test/triggerC.test b/test/triggerC.test index 879594c2c8..d3300b4258 100644 --- a/test/triggerC.test +++ b/test/triggerC.test @@ -916,6 +916,27 @@ do_test triggerC-11.4 { } } {{} {} 1 1} +do_test triggerC-12.1 { + db close + file delete -force test.db + sqlite3 db test.db + + execsql { + CREATE TABLE t1(a, b); + INSERT INTO t1 VALUES(1, 2); + INSERT INTO t1 VALUES(3, 4); + INSERT INTO t1 VALUES(5, 6); + CREATE TRIGGER tr1 AFTER INSERT ON t1 BEGIN SELECT 1 ; END ; + SELECT count(*) FROM sqlite_master; + } +} {2} +do_test triggerC-12.2 { + db eval { SELECT * FROM t1 } { + if {$a == 3} { execsql { DROP TRIGGER tr1 } } + } + execsql { SELECT count(*) FROM sqlite_master } +} {1} + finish_test