]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Add test case to incrblob4.test. No changes to code.
authordan <dan@noemail.net>
Thu, 20 Oct 2016 11:48:48 +0000 (11:48 +0000)
committerdan <dan@noemail.net>
Thu, 20 Oct 2016 11:48:48 +0000 (11:48 +0000)
FossilOrigin-Name: fd9c6ff05f2052810549a1a6a384f4b40f4ba4ac

manifest
manifest.uuid
test/incrblob4.test

index 48536b00434bc82c373b464bd3120b3715a2c77f..a415c87dced9d27605561a590bcdfd1e496427a7 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Minor\ssimplification\sof\sthe\scomparison\sopcodes.
-D 2016-10-18T16:36:15.935
+C Add\stest\scase\sto\sincrblob4.test.\sNo\schanges\sto\scode.
+D 2016-10-20T11:48:48.196
 F Makefile.in 6fd48ffcf7c2deea7499062d1f3747f986c19678
 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
 F Makefile.msc 5151cc64c4c05f3455f4f692ad11410a810d937f
@@ -835,7 +835,7 @@ F test/in5.test 6c006e0bcd7351b69350ef566e65f244023489e9
 F test/incrblob.test c9b96afc292aeff43d6687bcb09b0280aa599822
 F test/incrblob2.test a5ce5ed1d0b01e2ed347245a21170372528af0a5
 F test/incrblob3.test d8d036fde015d4a159cd3cbae9d29003b37227a4
-F test/incrblob4.test f26502a5697893e5acea268c910f16478c2f0fab
+F test/incrblob4.test fab83541571c7281aa561e5ea6088eb8612a4bec
 F test/incrblob_err.test 69f9247fed50278d48ea710d1a8f9cdb09e4c0b8
 F test/incrblobfault.test 280474078f6da9e732cd2a215d3d854969014b6e
 F test/incrcorrupt.test 6c567fbf870aa9e91866fe52ce6f200cd548939a
@@ -1526,7 +1526,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
 F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
 F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P 2aa7a03b8632dbfd9741018b5b19c372dcfd3647
-R 4e106c87e784e92bad6650fe8613fe88
-U drh
-Z 84c64fba90e2b1da59a52306d789b152
+P 56474ebca3fdddb8f3c5156f06dc42dc0a65256c
+R 6a7bc6f89b0af2fdd2ebad96f33dfe0d
+U dan
+Z c3391a8802a4551fd3ff33c7d0504831
index 091e1f1005cec3f9c1b4955b7776b4b2ec74523b..fbad17e2f884675d707b5f3cdea7b78769f19bfe 100644 (file)
@@ -1 +1 @@
-56474ebca3fdddb8f3c5156f06dc42dc0a65256c
\ No newline at end of file
+fd9c6ff05f2052810549a1a6a384f4b40f4ba4ac
\ No newline at end of file
index a92e373536b9d4f43efb76a7cd7443c2fd45a300..01ee37a0871cf0fd07354a0cbd547f5732b5ca50 100644 (file)
@@ -86,4 +86,25 @@ do_test 3.3 {
   execsql { INSERT INTO t1(v) VALUES($new) }
 } {}
 
+#-------------------------------------------------------------------------
+# Test that it is not possible to DROP a table with an incremental blob
+# cursor open on it.
+#
+do_execsql_test 4.1 {
+  CREATE TABLE t2(a INTEGER PRIMARY KEY, b);
+  INSERT INTO t2 VALUES(456, '0123456789');
+}
+do_test 4.2 {
+  set blob [db incrblob -readonly t2 b 456]
+  read $blob 5
+} {01234}
+do_catchsql_test 4.3 {
+  DROP TABLE t2
+} {1 {database table is locked}}
+do_test 4.4 {
+  sqlite3_extended_errcode db
+} {SQLITE_LOCKED}
+close $blob
+
 finish_test
+