/ Check-in [0af18674ca]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Do not do the byte-by-byte modifications in the resetdb.test script if the reserved-byte flag in the DB header is non-zero, because in that case the bytes will be in the wrong place and the test won't work.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0af18674ca5b34e67e1685be3adcdd99a7b8650589c6a7cde7ad9ef1852a8777
User & Date: drh 2018-09-11 19:05:32
References
2018-09-12
00:21
Fix a harmless compiler warning that arose from the ENABLE_CURSOR_HINTS fix of check-in [0af18674ca5b34e67e] check-in: f578e62ae6 user: drh tags: trunk
Context
2018-09-12
00:21
Fix a harmless compiler warning that arose from the ENABLE_CURSOR_HINTS fix of check-in [0af18674ca5b34e67e] check-in: f578e62ae6 user: drh tags: trunk
2018-09-11
19:05
Do not do the byte-by-byte modifications in the resetdb.test script if the reserved-byte flag in the DB header is non-zero, because in that case the bytes will be in the wrong place and the test won't work. check-in: 0af18674ca user: drh tags: trunk
13:38
Fix a problem causing ENABLE_CURSOR_HINTS builds to segfault. check-in: e7033104fa user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/resetdb.test.

   218    218     CREATE INDEX t1a ON t1(a);
   219    219     CREATE INDEX t1bc ON t1(b,c);
   220    220     WITH RECURSIVE c(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM c WHERE x<10)
   221    221       INSERT INTO t1(a,b,c) SELECT x, randomblob(100),randomblob(100) FROM c;
   222    222     PRAGMA page_count;
   223    223     PRAGMA integrity_check;
   224    224   } {19 ok}
          225  +
          226  +if {[nonzero_reserved_bytes]} {
          227  +  finish_test
          228  +  return
          229  +}
   225    230   
   226    231   do_execsql_test 710 {
   227    232     UPDATE sqlite_dbpage SET data=
   228    233       X'53514C69746520666F726D61742033000200030100402020000000000000001300000000000000000000000300000004000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000D00000003017C0001D801AC017C00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002E03061715110145696E6465787431626374310443524541544520494E4445582074316263204F4E20743128622C63292A0206171311013F696E64657874316174310343524541544520494E44455820743161204F4E20743128612926010617111101397461626C657431743102435245415445205441424C4520743128612C622C6329' WHERE pgno=1;
   229    234   }
   230    235   
   231    236   do_execsql_test 720 {
................................................................................
   240    245   
   241    246   do_execsql_test 740 {
   242    247     PRAGMA page_count;
   243    248     PRAGMA integrity_check;
   244    249   } {1 ok}
   245    250   
   246    251   finish_test
   247         -