Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add test case that should have been part of previous commit. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
dc7dd2d3e50e7cc474b22f1b5b219da3 |
User & Date: | dan 2022-12-05 14:20:54 |
Context
2022-12-06
| ||
05:09 | Add optional feature: A CLI continuation prompt which reflects open lexemes and parens, similarly to PG shell. (Leaf check-in: dac2ddc2 user: larrybr tags: dynamic_prompt) | |
2022-12-05
| ||
19:16 | Enhance the sqlite3_stmt_scanstatus() API and add sqlite3_stmt_scanstatus_v2(). For creation of enhanced query performance reports. (check-in: 4893b4e3 user: dan tags: trunk) | |
18:26 | Merge latest trunk changes. (check-in: 1a72777b user: dan tags: scanstatus_v2) | |
14:20 | Add test case that should have been part of previous commit. (check-in: dc7dd2d3 user: dan tags: trunk) | |
14:12 | Fix a problem in the memdb vfs xLock() function allowing clients to upgrade to EXCLUSIVE locks when other connections are holding SHARED. Forum post 5adb92e2baca3678. (check-in: 15f0be8a user: dan tags: trunk) | |
Changes
Added test/memdb2.test.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | # 2022-12-05 # # The author disclaims copyright to this source code. In place of # a legal notice, here is a blessing: # # May you do good and not evil. # May you find forgiveness for yourself and forgive others. # May you share freely, never taking more than you give. # #*********************************************************************** # This file implements regression tests for SQLite library. The # focus of this file is the "memdb" VFS # set testdir [file dirname $argv0] source $testdir/tester.tcl set testprefix memdb1 do_not_use_codec ifcapable !deserialize { finish_test return } db close #------------------------------------------------------------------------- # Test that when using a memdb database, it is not possible to upgrade # to an EXCLUSIVE lock if some other client is holding SHARED. # sqlite3 db file:/test.db?vfs=memdb -uri 1 sqlite3 db2 file:/test.db?vfs=memdb -uri 1 do_execsql_test 1.1 { CREATE TABLE t1(x, y); INSERT INTO t1 VALUES(1, 2); } do_execsql_test -db db2 1.2 { BEGIN; SELECT * FROM t1; } {1 2} do_execsql_test 1.3 { BEGIN; INSERT INTO t1 VALUES(3, 4); } do_catchsql_test 1.4 { COMMIT } {1 {database is locked}} do_execsql_test -db db2 1.5 { SELECT * FROM t1; END; } {1 2} do_execsql_test 1.6 { COMMIT } {} do_execsql_test -db db2 1.7 { SELECT * FROM t1 } {1 2 3 4} finish_test |