Add a test case to show that [/info/29ab7be99f|29ab7be99f] is fixed.

FossilOrigin-Name: 135d656a20a2a450955ed9ec57d9637cf31493c6
This commit is contained in:
dan 2009-09-09 11:43:43 +00:00
parent 144926d8b6
commit 0fe60783c1
3 changed files with 41 additions and 7 deletions

View File

@ -1,5 +1,5 @@
C Add\sa\scomplicated\sassert()\sto\scheck\sthat\sstatement\stransactions\sare\sopened\swhen\srequired.
D 2009-09-09T11:37:20
C Add\sa\stest\scase\sto\sshow\sthat\s[/info/29ab7be99f|29ab7be99f]\sis\sfixed.
D 2009-09-09T11:43:44
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
F Makefile.in 73ddeec9dd10b85876c5c2ce1fdce627e1dcc7f8
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@ -493,7 +493,7 @@ F test/mutex2.test bfeaeac2e73095b2ac32285d2756e3a65e681660
F test/nan.test cf555724e5a26aed2296a3f2637feee9f728cd81
F test/notify1.test 8433bc74bd952fb8a6e3f8d7a4c2b28dfd69e310
F test/notify2.test 195a467e021f74197be2c4fb02d6dee644b8d8db
F test/notnull.test 44d600f916b770def8b095a9962dbe3be5a70d82
F test/notnull.test cc7c78340328e6112a13c3e311a9ab3127114347
F test/null.test a8b09b8ed87852742343b33441a9240022108993
F test/openv2.test af02ed0a9cbc0d2a61b8f35171d4d117e588e4ec
F test/pageropt.test 3ee6578891baaca967f0bd349e4abfa736229e1a
@ -750,7 +750,7 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
P aec9dbd8d21c55c3945287a3dfa55d3ed168f977
R a1841d0403c06c3b9b5f6e774b694b14
P 28aa1f4ea8dad56ffedb31d6c2bc27c1d6be2407
R 80b7a1780d7cab9e4645936f99f809bd
U dan
Z 90b3c5c92554cb2f54c26452d6fcd827
Z c6e1174b9890309839b16375abf3927f

View File

@ -1 +1 @@
28aa1f4ea8dad56ffedb31d6c2bc27c1d6be2407
135d656a20a2a450955ed9ec57d9637cf31493c6

View File

@ -502,4 +502,38 @@ do_test notnull-4.10 {
}
} {1 {t1.e may not be NULL}}
# Test that bug 29ab7be99f is fixed.
#
do_test notnull-5.1 {
execsql {
DROP TABLE IF EXISTS t1;
CREATE TABLE t1(a, b NOT NULL);
CREATE TABLE t2(c, d);
INSERT INTO t2 VALUES(3, 4);
INSERT INTO t2 VALUES(5, NULL);
}
} {}
do_test notnull-5.2 {
catchsql {
INSERT INTO t1 VALUES(1, 2);
INSERT INTO t1 SELECT * FROM t2;
}
} {1 {t1.b may not be NULL}}
do_test notnull-5.3 {
execsql { SELECT * FROM t1 }
} {1 2}
do_test notnull-5.4 {
catchsql {
DELETE FROM t1;
BEGIN;
INSERT INTO t1 VALUES(1, 2);
INSERT INTO t1 SELECT * FROM t2;
COMMIT;
}
} {1 {t1.b may not be NULL}}
do_test notnull-5.5 {
execsql { SELECT * FROM t1 }
} {1 2}
finish_test