Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add test cases to the ONEPASS optimization corruption problem fixed by the previous check-in. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
5c14d447055bb337428eb1fe0a2934ab |
User & Date: | drh 2015-09-28 15:08:28.795 |
Context
2015-09-28
| ||
17:05 | Extra information provided by .wheretrace on input flags to the query planner and on the result of sqlite3WhereOkOnePass(). (check-in: c5566bb39c user: drh tags: trunk) | |
15:20 | Changes to allow DELETE operations on virtual tables to use the onepass strategy under some circumstances. (check-in: e73f919fae user: dan tags: vtab-onepass) | |
15:08 | Add test cases to the ONEPASS optimization corruption problem fixed by the previous check-in. (check-in: 5c14d44705 user: drh tags: trunk) | |
14:40 | Fix a database corruption bug caused by the ONEPASS optimization added in check-in [8b93cc5937000535]. Bug detected (prior to release) by sqllogictest. Test cases to follow. (check-in: 9d057f5221 user: drh tags: trunk) | |
Changes
Changes to test/delete4.test.
︙ | ︙ | |||
93 94 95 96 97 98 99 100 101 102 | do_execsql_test 3.3 { SELECT i FROM t1 ORDER BY i; } {1 3 5 7} do_execsql_test 3.4 { PRAGMA integrity_check; } {ok} finish_test | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | do_execsql_test 3.3 { SELECT i FROM t1 ORDER BY i; } {1 3 5 7} do_execsql_test 3.4 { PRAGMA integrity_check; } {ok} # Between 2015-09-14 and 2015-09-28, the following test cases would result # in corruption (wrong # of entries in index) due to a bug in the ONEPASS # optimization. # do_execsql_test 4.1 { DROP TABLE IF EXISTS t4; CREATE TABLE t4(col0, col1); INSERT INTO "t4" VALUES(14, 'abcde'); CREATE INDEX idx_t4_0 ON t4 (col1, col0); CREATE INDEX idx_t4_3 ON t4 (col0); DELETE FROM t4 WHERE col0=69 OR col0>7; PRAGMA integrity_check; } {ok} do_execsql_test 4.2 { DROP TABLE IF EXISTS t4; CREATE TABLE t4(col0, col1); INSERT INTO "t4" VALUES(14, 'abcde'); CREATE INDEX idx_t4_3 ON t4 (col0); CREATE INDEX idx_t4_0 ON t4 (col1, col0); DELETE FROM t4 WHERE col0=69 OR col0>7; PRAGMA integrity_check; } {ok} do_execsql_test 4.11 { DROP TABLE IF EXISTS t4; CREATE TABLE t4(col0, col1, pk PRIMARY KEY) WITHOUT ROWID; INSERT INTO t4 VALUES(14, 'abcde','xyzzy'); CREATE INDEX idx_t4_0 ON t4 (col1, col0); CREATE INDEX idx_t4_3 ON t4 (col0); DELETE FROM t4 WHERE col0=69 OR col0>7; PRAGMA integrity_check; } {ok} do_execsql_test 4.12 { DROP TABLE IF EXISTS t4; CREATE TABLE t4(col0, col1, pk PRIMARY KEY) WITHOUT ROWID; INSERT INTO t4 VALUES(14, 'abcde','xyzzy'); CREATE INDEX idx_t4_3 ON t4 (col0); CREATE INDEX idx_t4_0 ON t4 (col1, col0); DELETE FROM t4 WHERE col0=69 OR col0>7; PRAGMA integrity_check; } {ok} finish_test |