]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Add second test case for the improvement in [30735432].
authordan <dan@noemail.net>
Sat, 11 Jul 2020 16:45:20 +0000 (16:45 +0000)
committerdan <dan@noemail.net>
Sat, 11 Jul 2020 16:45:20 +0000 (16:45 +0000)
FossilOrigin-Name: 1bd18ca35bdbf3034591bf8981fd3a985f0920379bc4dc81e0e6a819667998e9

manifest
manifest.uuid
test/corruptL.test

index 207e47c1919c533bc000ec4ac15a53ea6ee07698..ec2c9628b1f84ae6273c2cceabd1c0867a5af6e8 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,6 +1,6 @@
 B 7a876209a678a34c198b54ceef9e3c041f128a14dc73357f6a57cadadaa6cf7b
-C Improved\sdetection\sof\sa\scorrupt\sdatabase\sschema.\sFix\sfor\sa\sproblem\sdiscovered\nby\sdbsqlfuzz.
-D 2020-07-11T16:42:28.397
+C Add\ssecond\stest\scase\sfor\sthe\simprovement\sin\s[30735432].
+D 2020-07-11T16:45:20.109
 F Makefile.in 19374a5db06c3199ec1bab71ab74a103d8abf21053c05e9389255dc58083f806
 F Makefile.msc 48f5a3fc32672c09ad73795749f6253e406a31526935fbbffd8f021108d54574
 F autoconf/Makefile.am a8d1d24affe52ebf8d7ddcf91aa973fa0316618ab95bb68c87cabf8faf527dc8
@@ -32,6 +32,7 @@ F src/vdbeapi.c c1a9004ac554d8d48794d2ce5f80397f8e419fd28643a543cc1e004c7713c3ef
 F src/window.c ddfe21354731f5a7f29f39d7a9150c578191ce33b05b90875d7bc2cf7afd1751
 F test/altertab.test b8b2104212e8ea87c75c3cbe3cb78ed7236a6c828ee2e59ed09d3dbe9812d002
 F test/busy2.test 415364312743992641f9bf679c84918327296067f85a5d00012b339dc35acbd7
+F test/corruptL.test 01cfda6b28f463d1713ac72a101e65549250568129ce5317ec6729729ecaf477
 F test/decimal.test 12739a01bdba4c4d79f95b323e6b67b9fad1ab6ffb56116bd2b9c81a5b19e1d9
 F test/filter1.test 6c483ecf7886c8843a8612c021aa23f33c581f584151f251842b3a3592c95ac8
 F test/fkey5.test 321fd41e8754389526b2b8e8769348dc9ff23a65d4d48b19c27df17459e82ec5
@@ -47,7 +48,7 @@ F tool/mksqlite3c.tcl f4ef476510eca4124c874a72029f1e01bc54a896b1724e8f9eef0d8bfa
 F tool/mksqlite3h.tcl 1f5e4a1dbbbc43c83cc6e74fe32c6c620502240b66c7c0f33a51378e78fc4edf
 F tool/showlocks.c 9cc5e66d4ebbf2d194f39db2527ece92077e86ae627ddd233ee48e16e8142564
 F tool/speed-check.sh 615cbdf50f1409ef3bbf9f682e396df80f49d97ed93ed3e61c8e91fae6afde58
-P 1e87da9c93309d1d69b1e0ab65c615b9ff9c1c6813ad0c7b90d2495be4ba0adc
-R ff70a39063eed43e9dd438f7258ce866
-U drh
-Z d54b70f0c5aff12e31d9bd93382c262a
+P 30735432bc33cb953b6d7d2a2de9eb378f9740e0e663f50c727c3f138cd43a2b
+R d3f6de902e4d6c47e7dd36f8c5263899
+U dan
+Z 2a53c05567155af386423ef070399f4a
index b8d5fa2b63fecc864065c50e9c20b4d209f9f0ee..22e860430193e156b55d4225c1cad71cbc72abfa 100644 (file)
@@ -1 +1 @@
-30735432bc33cb953b6d7d2a2de9eb378f9740e0e663f50c727c3f138cd43a2b
\ No newline at end of file
+1bd18ca35bdbf3034591bf8981fd3a985f0920379bc4dc81e0e6a819667998e9
\ No newline at end of file
index 3c26f1d215618e9177c715ebaec384f545e83cd7..6a2fa94fc18572449cf7aea7a7e6bf14df0a3c45 100644 (file)
@@ -1266,5 +1266,30 @@ do_test 15.0 {
 do_execsql_test 15.1 {
   UPDATE c1 SET c= NOT EXISTS(SELECT 1 FROM c1 ORDER BY (SELECT 1 FROM c1 ORDER BY a)) +10 WHERE d BETWEEN 4 AND 7;
 } {}
+
+#-------------------------------------------------------------------------
+reset_db
+do_execsql_test 16.0 {
+  CREATE TABLE t1(w, x, y, z, UNIQUE(w, x), UNIQUE(y, z));
+  INSERT INTO t1 VALUES(1, 1, 1, 1);
+
+  CREATE TABLE t1idx(x, y, i INTEGER, PRIMARY KEY(x)) WITHOUT ROWID;
+  INSERT INTO t1idx VALUES(10, NULL, 5);
+
+  PRAGMA writable_schema = 1;
+  UPDATE sqlite_master SET rootpage = (
+    SELECT rootpage FROM sqlite_master WHERE name='t1idx'
+  ) WHERE type = 'index';
+}
+
+db close
+sqlite3 db test.db
+
+do_catchsql_test 16.1 {
+  PRAGMA writable_schema = ON;
+  INSERT INTO t1(rowid, w, x, y, z) VALUES(5, 10, 11, 10, NULL);
+} {1 {database disk image is malformed}}
+
 finish_test
 
+