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

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

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « third_party/sqlite/src/test/fkey5.test ('k') | third_party/sqlite/src/test/fkey8.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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 array unset ::tbls 43 array unset ::tbls
44 uplevel [list execsql $sql] 44 uplevel [list execsql $sql]
45 uplevel [list do_test $tn {lsort [array names ::tbls]} $tbllist] 45 uplevel [list do_test $tn {lsort [array names ::tbls]} $tbllist]
46 } 46 }
47 47
48 do_tblsread_test 1.2 { UPDATE par SET b=? WHERE a=? } {par s1} 48 do_tblsread_test 1.2 { UPDATE par SET b=? WHERE a=? } {par s1}
49 do_tblsread_test 1.3 { UPDATE par SET a=? WHERE b=? } {c1 c2 par} 49 do_tblsread_test 1.3 { UPDATE par SET a=? WHERE b=? } {c1 c2 par}
50 do_tblsread_test 1.4 { UPDATE par SET c=? WHERE b=? } {c3 par} 50 do_tblsread_test 1.4 { UPDATE par SET c=? WHERE b=? } {c3 par}
51 do_tblsread_test 1.5 { UPDATE par SET a=?,b=?,c=? WHERE b=? } {c1 c2 c3 par s1} 51 do_tblsread_test 1.5 { UPDATE par SET a=?,b=?,c=? WHERE b=? } {c1 c2 c3 par s1}
52 52
53 ifcapable incrblob {
54 do_execsql_test 2.0 {
55 CREATE TABLE pX(x PRIMARY KEY);
56 CREATE TABLE cX(a INTEGER PRIMARY KEY, b REFERENCES pX);
57 }
58
59 do_catchsql_test 2.1 {
60 INSERT INTO cX VALUES(11, zeroblob(40));
61 } {1 {FOREIGN KEY constraint failed}}
62
63 do_test 2.2 {
64 set stmt [sqlite3_prepare_v2 db "INSERT INTO cX VALUES(11, ?)" -1]
65 sqlite3_bind_zeroblob $stmt 1 45
66 sqlite3_step $stmt
67 sqlite3_finalize $stmt
68 } {SQLITE_CONSTRAINT}
69 }
53 70
54 finish_test 71 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/fkey5.test ('k') | third_party/sqlite/src/test/fkey8.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698