Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix for tempdb.test so that it passes when running the inmemory_journal permutation test. (CVS 6584) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
0256187b512c5849ffae0644e6a42ec0 |
User & Date: | danielk1977 2009-05-01 05:23:18.000 |
Context
2009-05-01
| ||
06:19 | Remove a NEVER() clause from a condition that is true at least once when running attachmalloc.test. (CVS 6585) (check-in: 514efc7312 user: danielk1977 tags: trunk) | |
05:23 | Fix for tempdb.test so that it passes when running the inmemory_journal permutation test. (CVS 6584) (check-in: 0256187b51 user: danielk1977 tags: trunk) | |
02:08 | Fix processing of BEFORE triggers on INSERT statements with RHS SELECTs that insert a NULL into the INTEGER PRIMARY KEY. Ticket #3832. (CVS 6583) (check-in: 4a1f6a3a9a user: drh tags: trunk) | |
Changes
Changes to test/tempdb.test.
︙ | ︙ | |||
8 9 10 11 12 13 14 | # May you share freely, never taking more than you give. # #*********************************************************************** # This file implements regression tests for SQLite library. # The focus of this file is in making sure that rolling back # a statement journal works correctly. # | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # May you share freely, never taking more than you give. # #*********************************************************************** # This file implements regression tests for SQLite library. # The focus of this file is in making sure that rolling back # a statement journal works correctly. # # $Id: tempdb.test,v 1.3 2009/05/01 05:23:18 danielk1977 Exp $ set testdir [file dirname $argv0] source $testdir/tester.tcl # Use a temporary database. # db close |
︙ | ︙ | |||
49 50 51 52 53 54 55 | do_test tempdb-1.2 { execsql { SELECT * FROM t1 } } {} do_test tempdb-2.1 { | > > > > > | > > > > > | | | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | do_test tempdb-1.2 { execsql { SELECT * FROM t1 } } {} do_test tempdb-2.1 { # Set $::jrnl_in_memory if the journal file is expected to be in-memory. # Similarly, set $::subj_in_memory if the sub-journal file is expected # to be in memory. These variables are used to calculate the expected # number of open files in the test cases below. # set jrnl_in_memory [expr { [info exists ::permutations_test_prefix] && $::permutations_test_prefix eq "inmemory_journal" }] set subj_in_memory [expr {$jrnl_in_memory || $TEMP_STORE == 3}] db close sqlite3 db test.db } {} do_test tempdb-2.2 { execsql { CREATE TABLE t1 (a PRIMARY KEY, b, c); CREATE TABLE t2 (a, b, c); BEGIN; INSERT INTO t1 VALUES(1, 2, 3); INSERT INTO t1 VALUES(4, 5, 6); INSERT INTO t2 SELECT * FROM t1; } catchsql { INSERT INTO t1 SELECT * FROM t2 } set sqlite_open_file_count } [expr 1 + (0==$jrnl_in_memory) + (0==$subj_in_memory)] do_test tempdb-2.3 { execsql { PRAGMA temp_store = 'memory'; ROLLBACK; BEGIN; INSERT INTO t1 VALUES(1, 2, 3); INSERT INTO t1 VALUES(4, 5, 6); INSERT INTO t2 SELECT * FROM t1; } catchsql { INSERT INTO t1 SELECT * FROM t2 } set sqlite_open_file_count } [expr 1 + (0==$jrnl_in_memory)] finish_test |