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

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

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/test/tkt3929.test ('k') | third_party/sqlite/src/test/trace.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2001 September 15 1 # 2001 September 15
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 #***********************************************************************
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 } {2 1.0} 38 } {2 1.0}
39 39
40 do_test tkt3992-1.3 { 40 do_test tkt3992-1.3 {
41 execsql { 41 execsql {
42 UPDATE parameters2 SET mountcnt = mountcnt + 1; 42 UPDATE parameters2 SET mountcnt = mountcnt + 1;
43 SELECT * FROM parameters2; 43 SELECT * FROM parameters2;
44 } 44 }
45 } {2 1.0} 45 } {2 1.0}
46 46
47 do_test tkt3992-2.1 { 47 ifcapable altertable {
48 execsql { 48 do_test tkt3992-2.1 {
49 CREATE TABLE t1(a, b); 49 execsql {
50 INSERT INTO t1 VALUES(1, 2); 50 CREATE TABLE t1(a, b);
51 ALTER TABLE t1 ADD COLUMN c DEFAULT 3; 51 INSERT INTO t1 VALUES(1, 2);
52 SELECT * FROM t1; 52 ALTER TABLE t1 ADD COLUMN c DEFAULT 3;
53 } 53 SELECT * FROM t1;
54 } {1 2 3} 54 }
55 do_test tkt3992-2.2 { 55 } {1 2 3}
56 execsql { 56 do_test tkt3992-2.2 {
57 UPDATE t1 SET a = 'one'; 57 execsql {
58 SELECT * FROM t1; 58 UPDATE t1 SET a = 'one';
59 } 59 SELECT * FROM t1;
60 } {one 2 3} 60 }
61 } {one 2 3}
62 }
61 63
62 db function tcl eval 64 ifcapable trigger {
63 do_test tkt3992-2.3 { 65 db function tcl eval
64 execsql { 66 do_test tkt3992-2.3 {
65 CREATE TABLE t2(a REAL, b REAL, c REAL); 67 execsql {
66 INSERT INTO t2 VALUES(1, 2, 3); 68 CREATE TABLE t2(a REAL, b REAL, c REAL);
67 CREATE TRIGGER tr2 BEFORE UPDATE ON t2 BEGIN 69 INSERT INTO t2 VALUES(1, 2, 3);
68 SELECT tcl('set res', typeof(new.c)); 70 CREATE TRIGGER tr2 BEFORE UPDATE ON t2 BEGIN
69 END; 71 SELECT tcl('set res', typeof(new.c));
70 72 END;
71 UPDATE t2 SET a = 'I'; 73
72 } 74 UPDATE t2 SET a = 'I';
73 set res 75 }
74 } {real} 76 set res
77 } {real}
78 }
75 79
76 80
77 finish_test 81 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/tkt3929.test ('k') | third_party/sqlite/src/test/trace.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698