Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add an extra IO-error test to windowfault.test. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
5b8c44cd39c529e8adbc51f67088409e |
User & Date: | dan 2019-03-30 17:07:23.564 |
Context
2019-03-30
| ||
17:30 | Add the blobio.c extension module implementing readblob() and writeblob(). Experimental. (check-in: e3fde56da4 user: drh tags: trunk) | |
17:07 | Add an extra IO-error test to windowfault.test. (check-in: 5b8c44cd39 user: dan tags: trunk) | |
2019-03-29
| ||
15:21 | Remove the unused P5 flag from the OP_Rewind opcode. (check-in: c2edbf3b8c user: drh tags: trunk) | |
Changes
Changes to test/windowfault.test.
︙ | ︙ | |||
157 158 159 160 161 162 163 164 165 | WINDOW win1 AS (PARTITION BY a ), win2 AS (PARTITION BY b ) ORDER BY a; } } -test { faultsim_test_result {0 {1 2 5 6 9 10}} } finish_test | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | WINDOW win1 AS (PARTITION BY a ), win2 AS (PARTITION BY b ) ORDER BY a; } } -test { faultsim_test_result {0 {1 2 5 6 9 10}} } #------------------------------------------------------------------------- # The following test causes a cursor in REQURESEEK state to be passed # to sqlite3BtreeDelete(). An error is simulated within the seek operation # to restore the cursors position. # reset_db set big [string repeat x 900] do_execsql_test 9.0 { PRAGMA page_size = 512; PRAGMA cache_size = 2; CREATE TABLE t(x INTEGER PRIMARY KEY, y TEXT); WITH s(i) AS ( VALUES(1) UNION ALL SELECT i+1 FROM s WHERE i<1900 ) INSERT INTO t(y) SELECT $big FROM s; } db close testvfs tvfs -default 1 tvfs script vfs_callback tvfs filter xRead sqlite3 db test.db proc vfs_callback {method file args} { if {$file=="" && [info exists ::tmp_read_fail]} { incr ::tmp_read_fail -1 if {$::tmp_read_fail<=0} { return "SQLITE_IOERR" } } return "SQLITE_OK" } set FAULTSIM(tmpread) [list \ -injectstart tmpread_injectstart \ -injectstop tmpread_injectstop \ -injecterrlist {{1 {disk I/O error}}} \ ] proc tmpread_injectstart {iFail} { set ::tmp_read_fail $iFail } proc tmpread_injectstop {} { set ret [expr $::tmp_read_fail<=0] unset -nocomplain ::tmp_read_fail return $ret } do_faultsim_test 9 -end 25 -faults tmpread -body { execsql { SELECT sum(y) OVER win FROM t WINDOW win AS ( ORDER BY x ROWS BETWEEN UNBOUNDED PRECEDING AND 1800 FOLLOWING ) } } -test { faultsim_test_result {0 {}} } catch {db close} tvfs delete finish_test |