SQLite4
Check-in [0ed91ba599]
Not logged in

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

Overview
Comment:Fix a problem in test script misuse.test.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0ed91ba5990b25f74f6f96acb5c8e6edf50de02f
User & Date: dan 2012-09-05 17:15:33
Context
2012-09-05
18:52
Fix a bug in the lsm_unix.c xLock method. check-in: e50e06e52c user: dan tags: trunk
17:15
Fix a problem in test script misuse.test. check-in: 0ed91ba599 user: dan tags: trunk
16:18
When possible, reuse file-descriptors from the deferred-close list instead of opening new ones. check-in: 9350457414 user: dan tags: trunk
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to test/misuse.test.

35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
}


# Make sure the test logic works
#
do_test misuse-1.1 {
  db close
  catch {forcedelete test2.db}
  catch {forcedelete test2.db-journal}
  sqlite4 db test2.db; set ::DB [sqlite4_connection_pointer db]
  execsql {
    CREATE TABLE t1(a,b);
    INSERT INTO t1 VALUES(1,2);
  }
  catchsql2 {
    SELECT * FROM t1







|
<







35
36
37
38
39
40
41
42

43
44
45
46
47
48
49
}


# Make sure the test logic works
#
do_test misuse-1.1 {
  db close
  db_delete test2.db

  sqlite4 db test2.db; set ::DB [sqlite4_connection_pointer db]
  execsql {
    CREATE TABLE t1(a,b);
    INSERT INTO t1 VALUES(1,2);
  }
  catchsql2 {
    SELECT * FROM t1