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

Side by Side Diff: third_party/sqlite/src/test/conflict2.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/colmeta.test ('k') | third_party/sqlite/src/test/corrupt2.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 # 2013-11-04 1 # 2013-11-04
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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 # t1 Content of "b" column of t1 assuming no error in $cmd 282 # t1 Content of "b" column of t1 assuming no error in $cmd
283 # t2 Content of "x" column of t3 283 # t2 Content of "x" column of t3
284 # t3 Number of temporary files for tables 284 # t3 Number of temporary files for tables
285 # t4 Number of temporary files for statement journals 285 # t4 Number of temporary files for statement journals
286 # 286 #
287 # Update: Since temporary table files are now opened lazily, and none 287 # Update: Since temporary table files are now opened lazily, and none
288 # of the following tests use large quantities of data, t3 is always 0. 288 # of the following tests use large quantities of data, t3 is always 0.
289 # 289 #
290 foreach {i conf1 cmd t0 t1 t2 t3 t4} { 290 foreach {i conf1 cmd t0 t1 t2 t3 t4} {
291 1 {} UPDATE 1 {6 7 8 9} 1 0 1 291 1 {} UPDATE 1 {6 7 8 9} 1 0 1
292 2 REPLACE UPDATE 0 {7 6 9} 1 0 0 292 2 REPLACE UPDATE 0 {7 6 9} 1 0 1
293 3 IGNORE UPDATE 0 {6 7 3 9} 1 0 0 293 3 IGNORE UPDATE 0 {6 7 3 9} 1 0 1
294 4 FAIL UPDATE 1 {6 7 3 4} 1 0 0 294 4 FAIL UPDATE 1 {6 7 3 4} 1 0 1
295 5 ABORT UPDATE 1 {1 2 3 4} 1 0 1 295 5 ABORT UPDATE 1 {1 2 3 4} 1 0 1
296 6 ROLLBACK UPDATE 1 {1 2 3 4} 0 0 0 296 6 ROLLBACK UPDATE 1 {1 2 3 4} 0 0 1
297 7 REPLACE {UPDATE OR IGNORE} 0 {6 7 3 9} 1 0 0 297 7 REPLACE {UPDATE OR IGNORE} 0 {6 7 3 9} 1 0 0
298 8 IGNORE {UPDATE OR REPLACE} 0 {7 6 9} 1 0 1 298 8 IGNORE {UPDATE OR REPLACE} 0 {7 6 9} 1 0 1
299 9 FAIL {UPDATE OR IGNORE} 0 {6 7 3 9} 1 0 0 299 9 FAIL {UPDATE OR IGNORE} 0 {6 7 3 9} 1 0 0
300 10 ABORT {UPDATE OR REPLACE} 0 {7 6 9} 1 0 1 300 10 ABORT {UPDATE OR REPLACE} 0 {7 6 9} 1 0 1
301 11 ROLLBACK {UPDATE OR IGNORE} 0 {6 7 3 9} 1 0 0 301 11 ROLLBACK {UPDATE OR IGNORE} 0 {6 7 3 9} 1 0 0
302 12 {} {UPDATE OR IGNORE} 0 {6 7 3 9} 1 0 0 302 12 {} {UPDATE OR IGNORE} 0 {6 7 3 9} 1 0 0
303 13 {} {UPDATE OR REPLACE} 0 {7 6 9} 1 0 1 303 13 {} {UPDATE OR REPLACE} 0 {7 6 9} 1 0 1
304 14 {} {UPDATE OR FAIL} 1 {6 7 3 4} 1 0 0 304 14 {} {UPDATE OR FAIL} 1 {6 7 3 4} 1 0 0
305 15 {} {UPDATE OR ABORT} 1 {1 2 3 4} 1 0 1 305 15 {} {UPDATE OR ABORT} 1 {1 2 3 4} 1 0 1
306 16 {} {UPDATE OR ROLLBACK} 1 {1 2 3 4} 0 0 0 306 16 {} {UPDATE OR ROLLBACK} 1 {1 2 3 4} 0 0 0
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 CREATE UNIQUE INDEX t1xy ON t1(x,y); 846 CREATE UNIQUE INDEX t1xy ON t1(x,y);
847 REPLACE INTO t1(x,y,z) VALUES('alpha','gamma',1); 847 REPLACE INTO t1(x,y,z) VALUES('alpha','gamma',1);
848 PRAGMA integrity_check; 848 PRAGMA integrity_check;
849 SELECT x,y FROM t1 INDEXED BY t1xy; 849 SELECT x,y FROM t1 INDEXED BY t1xy;
850 SELECT x,y,z FROM t1 NOT INDEXED; 850 SELECT x,y,z FROM t1 NOT INDEXED;
851 } {ok alpha gamma alpha gamma 1} 851 } {ok alpha gamma alpha gamma 1}
852 852
853 853
854 854
855 finish_test 855 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/colmeta.test ('k') | third_party/sqlite/src/test/corrupt2.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698