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

Side by Side Diff: third_party/sqlite/src/test/tkt1873.test

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. Created 5 years, 10 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
1 # 2006 June 27 1 # 2006 June 27
2 # 2 #
3 # The author disclaims copyright to this source code. In place of 3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing: 4 # a legal notice, here is a blessing:
5 # 5 #
6 # May you do good and not evil. 6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others. 7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give. 8 # May you share freely, never taking more than you give.
9 # 9 #
10 #*********************************************************************** 10 #***********************************************************************
11 # This file implements regression tests for SQLite library. 11 # This file implements regression tests for SQLite library.
12 # 12 #
13 # This file implements tests to verify that ticket #1873 has been 13 # This file implements tests to verify that ticket #1873 has been
14 # fixed. 14 # fixed.
15 # 15 #
16 # 16 #
17 # $Id: tkt1873.test,v 1.2 2007/10/09 08:29:33 danielk1977 Exp $ 17 # $Id: tkt1873.test,v 1.2 2007/10/09 08:29:33 danielk1977 Exp $
18 18
19 set testdir [file dirname $argv0] 19 set testdir [file dirname $argv0]
20 source $testdir/tester.tcl 20 source $testdir/tester.tcl
21 21
22 ifcapable !attach { 22 ifcapable !attach {
23 finish_test 23 finish_test
24 return 24 return
25 } 25 }
26 26
27 file delete -force test2.db test2.db-journal 27 forcedelete test2.db test2.db-journal
28 28
29 do_test tkt1873-1.1 { 29 do_test tkt1873-1.1 {
30 execsql { 30 execsql {
31 CREATE TABLE t1(x, y); 31 CREATE TABLE t1(x, y);
32 ATTACH 'test2.db' AS aux; 32 ATTACH 'test2.db' AS aux;
33 CREATE TABLE aux.t2(x, y); 33 CREATE TABLE aux.t2(x, y);
34 INSERT INTO t1 VALUES(1, 2); 34 INSERT INTO t1 VALUES(1, 2);
35 INSERT INTO t1 VALUES(3, 4); 35 INSERT INTO t1 VALUES(3, 4);
36 INSERT INTO t2 VALUES(5, 6); 36 INSERT INTO t2 VALUES(5, 6);
37 INSERT INTO t2 VALUES(7, 8); 37 INSERT INTO t2 VALUES(7, 8);
(...skipping 25 matching lines...) Expand all
63 } {1 {no such table: t2}} 63 } {1 {no such table: t2}}
64 64
65 do_test tkt1873-1.5 { 65 do_test tkt1873-1.5 {
66 catchsql { 66 catchsql {
67 ATTACH 'test2.db' AS aux; 67 ATTACH 'test2.db' AS aux;
68 select * from t2; 68 select * from t2;
69 } 69 }
70 } {0 {5 6 7 8}} 70 } {0 {5 6 7 8}}
71 71
72 finish_test 72 finish_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698