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

Side by Side Diff: third_party/sqlite/sqlite-src-3070603/test/tkt3731.test

Issue 949043002: Add //third_party/sqlite to dirs_to_snapshot, remove net_sql.patch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 March 18
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 # $Id: tkt3731.test,v 1.1 2009/03/17 22:33:01 drh Exp $
13
14 set testdir [file dirname $argv0]
15 source $testdir/tester.tcl
16 ifcapable {!trigger} {
17 finish_test
18 return
19 }
20
21 # The tests in this file were written before SQLite supported recursive
22 # trigger invocation, and some tests depend on that to pass. So disable
23 # recursive triggers for this file.
24 catchsql { pragma recursive_triggers = off }
25
26 do_test tkt3731-1.1 {
27 execsql {
28 CREATE TABLE t1(a PRIMARY KEY, b);
29 CREATE TRIGGER tr1 AFTER INSERT ON t1 BEGIN
30 INSERT INTO t1 VALUES(new.a || '+', new.b || '+');
31 END;
32 }
33 } {}
34
35 do_test tkt3731-1.2 {
36 execsql {
37 INSERT INTO t1 VALUES('a', 'b');
38 INSERT INTO t1 VALUES('c', 'd');
39 SELECT * FROM t1;
40 }
41 } {a b a+ b+ c d c+ d+}
42
43 do_test tkt3731-1.3 {
44 execsql {
45 DELETE FROM t1;
46 CREATE TABLE t2(a, b);
47 INSERT INTO t2 VALUES('e', 'f');
48 INSERT INTO t2 VALUES('g', 'h');
49 INSERT INTO t1 SELECT * FROM t2;
50 SELECT * FROM t1;
51 }
52 } {e f e+ f+ g h g+ h+}
53
54 integrity_check tkt3731-1.4
55
56 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/sqlite-src-3070603/test/tkt3718.test ('k') | third_party/sqlite/sqlite-src-3070603/test/tkt3757.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698