mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Add trivial test case to make sure shared-cache mode does not automatically turn on exclusive-locking mode.
FossilOrigin-Name: a0ab3902f1431c962a5d034647ef3c6876dc0e75
This commit is contained in:
@ -13,6 +13,8 @@
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
source $testdir/lock_common.tcl
|
||||
source $testdir/malloc_common.tcl
|
||||
db close
|
||||
|
||||
ifcapable !shared_cache {
|
||||
@ -166,5 +168,14 @@ do_test shared2-5.1 {
|
||||
db close
|
||||
db2 close
|
||||
|
||||
# The following test verifies that shared-cache mode does not automatically
|
||||
# turn on exclusive-locking mode for some reason.
|
||||
do_multiclient_test {tn} {
|
||||
sql1 { CREATE TABLE t1(a, b) }
|
||||
sql2 { CREATE TABLE t2(a, b) }
|
||||
do_test shared2-6.$tn.1 { sql1 { SELECT * FROM t2 } } {}
|
||||
do_test shared2-6.$tn.2 { sql2 { SELECT * FROM t1 } } {}
|
||||
}
|
||||
|
||||
sqlite3_enable_shared_cache $::enable_shared_cache
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user