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

Side by Side Diff: third_party/sqlite/src/mptest/multiwrite01.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/mptest/mptest.c ('k') | third_party/sqlite/src/sqlite3.1 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ** This script sets up five different tasks all writing and updating 2 ** This script sets up five different tasks all writing and updating
3 ** the database at the same time, but each in its own table. 3 ** the database at the same time, but each in its own table.
4 */ 4 */
5 --task 1 build-t1 5 --task 1 build-t1
6 DROP TABLE IF EXISTS t1; 6 DROP TABLE IF EXISTS t1;
7 CREATE TABLE t1(a INTEGER PRIMARY KEY, b); 7 CREATE TABLE t1(a INTEGER PRIMARY KEY, b);
8 --sleep 1 8 --sleep 1
9 INSERT INTO t1 VALUES(1, randomblob(2000)); 9 INSERT INTO t1 VALUES(1, randomblob(2000));
10 INSERT INTO t1 VALUES(2, randomblob(1000)); 10 INSERT INTO t1 VALUES(2, randomblob(1000));
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 354
355 --task 1 355 --task 1
356 SELECT t1.a FROM t1, t2 356 SELECT t1.a FROM t1, t2
357 WHERE t2.b GLOB 'x3?y' AND t1.b=('x'||(t2.a+3)||'y') 357 WHERE t2.b GLOB 'x3?y' AND t1.b=('x'||(t2.a+3)||'y')
358 ORDER BY t1.a LIMIT 4 358 ORDER BY t1.a LIMIT 4
359 --match 33 34 35 36 359 --match 33 34 35 36
360 SELECT t3.a FROM t3, t4 360 SELECT t3.a FROM t3, t4
361 WHERE t4.b GLOB 'x4?y' AND t3.b=('x'||(t4.a+5)||'y') 361 WHERE t4.b GLOB 'x4?y' AND t3.b=('x'||(t4.a+5)||'y')
362 ORDER BY t3.a LIMIT 7 362 ORDER BY t3.a LIMIT 7
363 --match 45 46 47 48 49 50 51 363 --match 45 46 47 48 49 50 51
364 PRAGMA integrity_check;
365 --match ok
364 --end 366 --end
365 --task 5 367 --task 5
366 SELECT t1.a FROM t1, t2 368 SELECT t1.a FROM t1, t2
367 WHERE t2.b GLOB 'x3?y' AND t1.b=('x'||(t2.a+3)||'y') 369 WHERE t2.b GLOB 'x3?y' AND t1.b=('x'||(t2.a+3)||'y')
368 ORDER BY t1.a LIMIT 4 370 ORDER BY t1.a LIMIT 4
369 --match 33 34 35 36 371 --match 33 34 35 36
370 SELECT t3.a FROM t3, t4 372 SELECT t3.a FROM t3, t4
371 WHERE t4.b GLOB 'x4?y' AND t3.b=('x'||(t4.a+5)||'y') 373 WHERE t4.b GLOB 'x4?y' AND t3.b=('x'||(t4.a+5)||'y')
372 ORDER BY t3.a LIMIT 7 374 ORDER BY t3.a LIMIT 7
373 --match 45 46 47 48 49 50 51 375 --match 45 46 47 48 49 50 51
376 PRAGMA integrity_check;
377 --match ok
374 --end 378 --end
375 --task 3 379 --task 3
376 SELECT t1.a FROM t1, t2 380 SELECT t1.a FROM t1, t2
377 WHERE t2.b GLOB 'x3?y' AND t1.b=('x'||(t2.a+3)||'y') 381 WHERE t2.b GLOB 'x3?y' AND t1.b=('x'||(t2.a+3)||'y')
378 ORDER BY t1.a LIMIT 4 382 ORDER BY t1.a LIMIT 4
379 --match 33 34 35 36 383 --match 33 34 35 36
380 SELECT t3.a FROM t3, t4 384 SELECT t3.a FROM t3, t4
381 WHERE t4.b GLOB 'x4?y' AND t3.b=('x'||(t4.a+5)||'y') 385 WHERE t4.b GLOB 'x4?y' AND t3.b=('x'||(t4.a+5)||'y')
382 ORDER BY t3.a LIMIT 7 386 ORDER BY t3.a LIMIT 7
383 --match 45 46 47 48 49 50 51 387 --match 45 46 47 48 49 50 51
388 PRAGMA integrity_check;
389 --match ok
384 --end 390 --end
385 --task 2 391 --task 2
386 SELECT t1.a FROM t1, t2 392 SELECT t1.a FROM t1, t2
387 WHERE t2.b GLOB 'x3?y' AND t1.b=('x'||(t2.a+3)||'y') 393 WHERE t2.b GLOB 'x3?y' AND t1.b=('x'||(t2.a+3)||'y')
388 ORDER BY t1.a LIMIT 4 394 ORDER BY t1.a LIMIT 4
389 --match 33 34 35 36 395 --match 33 34 35 36
390 SELECT t3.a FROM t3, t4 396 SELECT t3.a FROM t3, t4
391 WHERE t4.b GLOB 'x4?y' AND t3.b=('x'||(t4.a+5)||'y') 397 WHERE t4.b GLOB 'x4?y' AND t3.b=('x'||(t4.a+5)||'y')
392 ORDER BY t3.a LIMIT 7 398 ORDER BY t3.a LIMIT 7
393 --match 45 46 47 48 49 50 51 399 --match 45 46 47 48 49 50 51
400 PRAGMA integrity_check;
401 --match ok
394 --end 402 --end
395 --task 4 403 --task 4
396 SELECT t1.a FROM t1, t2 404 SELECT t1.a FROM t1, t2
397 WHERE t2.b GLOB 'x3?y' AND t1.b=('x'||(t2.a+3)||'y') 405 WHERE t2.b GLOB 'x3?y' AND t1.b=('x'||(t2.a+3)||'y')
398 ORDER BY t1.a LIMIT 4 406 ORDER BY t1.a LIMIT 4
399 --match 33 34 35 36 407 --match 33 34 35 36
400 SELECT t3.a FROM t3, t4 408 SELECT t3.a FROM t3, t4
401 WHERE t4.b GLOB 'x4?y' AND t3.b=('x'||(t4.a+5)||'y') 409 WHERE t4.b GLOB 'x4?y' AND t3.b=('x'||(t4.a+5)||'y')
402 ORDER BY t3.a LIMIT 7 410 ORDER BY t3.a LIMIT 7
403 --match 45 46 47 48 49 50 51 411 --match 45 46 47 48 49 50 51
412 PRAGMA integrity_check;
413 --match ok
404 --end 414 --end
405 --wait all 415 --wait all
OLDNEW
« no previous file with comments | « third_party/sqlite/src/mptest/mptest.c ('k') | third_party/sqlite/src/sqlite3.1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698