Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Side by Side Diff: third_party/sqlite/sqlite-src-3080704/test/shared7.test

Issue 2363173002: [sqlite] Remove obsolete reference version 3.8.7.4. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # 2009 April 30
2 #
3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
5 #
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
9 #
10 #***********************************************************************
11 #
12 # Make sure that attaching the same database multiple times in
13 # shared cache mode fails.
14 #
15 # $Id: shared7.test,v 1.1 2009/04/30 13:30:33 drh Exp $
16
17 set testdir [file dirname $argv0]
18 source $testdir/tester.tcl
19 ifcapable !shared_cache { finish_test ; return }
20
21 do_test shared7-1.1 {
22 set ::enable_shared_cache [sqlite3_enable_shared_cache 1]
23 sqlite3_enable_shared_cache
24 } {1}
25
26 # EVIDENCE-OF: R-05098-06501 In shared cache mode, attempting to attach
27 # the same database file more than once results in an error.
28 #
29 do_test shared7-1.2 {
30 db close
31 sqlite3 db test.db
32 db eval {
33 CREATE TABLE t1(x);
34 }
35 catchsql {
36 ATTACH 'test.db' AS err1;
37 }
38 } {1 {database is already attached}}
39
40 do_test shared7-1.3 {
41 forcedelete test2.db test2.db-journal
42 db eval {
43 ATTACH 'test2.db' AS test2;
44 CREATE TABLE test2.t2(y);
45 }
46 catchsql {
47 ATTACH 'test2.db' AS err2;
48 }
49 } {1 {database is already attached}}
50 do_test shared7-1.4 {
51 catchsql {
52 ATTACH 'test.db' AS err1;
53 }
54 } {1 {database is already attached}}
55
56
57 sqlite3_enable_shared_cache $::enable_shared_cache
58 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/test/shared6.test ('k') | third_party/sqlite/sqlite-src-3080704/test/shared8.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698