Add a test for malloc() failure when compiling a trigger step of the form "INSERT INTO ... SELECT ...". Currently causes a segfault. (CVS 4232)
FossilOrigin-Name: 161643a694458e76849cd663f277892ae7c6b729
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
C Half-way\sthrough\sa\smajor\srefactoring\sof\sthe\smemory\sallocation.\nI\shave\snot\seven\sattempted\sto\scompile\sso\sI\sam\scertain\sthere\sare\ncountless\serrors.\s(CVS\s4231)
|
||||
D 2007-08-16T04:30:39
|
||||
C Add\sa\stest\sfor\smalloc()\sfailure\swhen\scompiling\sa\strigger\sstep\sof\sthe\sform\s"INSERT\sINTO\s...\sSELECT\s...".\sCurrently\scauses\sa\ssegfault.\s(CVS\s4232)
|
||||
D 2007-08-16T04:39:01
|
||||
F Makefile.in 0c0e53720f658c7a551046442dd7afba0b72bfbe
|
||||
F Makefile.linux-gcc 65241babba6faf1152bf86574477baab19190499
|
||||
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
|
||||
@@ -308,7 +308,7 @@ F test/lock2.test 5f9557b775662c2a5ee435378f39e10d64f65cb3
|
||||
F test/lock3.test 615111293cf32aa2ed16d01c6611737651c96fb9
|
||||
F test/lock4.test 49e22396b9be6e047b3d35469f233be79153c9d5
|
||||
F test/main.test e7212ce1023957c7209778cc87fa932bd79ba89a
|
||||
F test/malloc.test 45a81af6328381d0630ab0a3d8cb8c58551603f7
|
||||
F test/malloc.test 42e71334eba7e311674625340d464db57d47788e
|
||||
F test/malloc2.test 4ed7d719542c4570dec9c2ebe2bbdf3a9f3b0d05
|
||||
F test/malloc3.test e965954b6f808876a63d3101fd70370320b509a7
|
||||
F test/malloc4.test 59cd02f71b363302a04c4e77b97c0a1572eaa210
|
||||
@@ -529,7 +529,7 @@ F www/tclsqlite.tcl 8be95ee6dba05eabcd27a9d91331c803f2ce2130
|
||||
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
|
||||
F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
|
||||
F www/whentouse.tcl fc46eae081251c3c181bd79c5faef8195d7991a5
|
||||
P 1dad2c0a1f00596b13b02ccef664bd2346a677a4
|
||||
R b936ef9b9840b7af9fe0cf357a16be54
|
||||
U drh
|
||||
Z 75f9460fb314adda683774e2c83526fd
|
||||
P deb7ecd65f7b83eaf0ba610eeef3b0ede61db1c3
|
||||
R cf90298b3b3d07ca81013abb6b566a4c
|
||||
U danielk1977
|
||||
Z d365a125dcbfa4a995190ff632cb9301
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
deb7ecd65f7b83eaf0ba610eeef3b0ede61db1c3
|
||||
161643a694458e76849cd663f277892ae7c6b729
|
||||
+3
-1
@@ -14,7 +14,7 @@
|
||||
# special feature is used to see what happens in the library if a malloc
|
||||
# were to really fail due to an out-of-memory situation.
|
||||
#
|
||||
# $Id: malloc.test,v 1.42 2007/05/30 10:36:47 danielk1977 Exp $
|
||||
# $Id: malloc.test,v 1.43 2007/08/16 04:39:01 danielk1977 Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@@ -136,6 +136,8 @@ do_malloc_test 5 -sqlbody {
|
||||
CREATE TABLE t2(x,y);
|
||||
CREATE TRIGGER r1 AFTER INSERT ON t1 BEGIN
|
||||
INSERT INTO t2(x,y) VALUES(new.rowid,1);
|
||||
INSERT INTO t2(x,y) SELECT * FROM t2;
|
||||
INSERT INTO t2 SELECT * FROM t2;
|
||||
UPDATE t2 SET y=y+1 WHERE x=new.rowid;
|
||||
SELECT 123;
|
||||
DELETE FROM t2 WHERE x=new.rowid;
|
||||
|
||||
Reference in New Issue
Block a user