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

Side by Side Diff: third_party/sqlite/src/test/misc5.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/misc4.test ('k') | third_party/sqlite/src/test/misc8.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 # 2005 Mar 16 1 # 2005 Mar 16
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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 set sql "INSERT INTO t1 VALUES(" 576 set sql "INSERT INTO t1 VALUES("
577 set tail "" 577 set tail ""
578 for {set i 0} {$i<200} {incr i} { 578 for {set i 0} {$i<200} {incr i} {
579 append sql "(1+" 579 append sql "(1+"
580 append tail ")" 580 append tail ")"
581 } 581 }
582 append sql 2$tail 582 append sql 2$tail
583 catchsql $sql 583 catchsql $sql
584 } {1 {parser stack overflow}} 584 } {1 {parser stack overflow}}
585 585
586 # Parser stack overflow is silently ignored when it occurs while parsing the
587 # schema and PRAGMA writable_schema is turned on.
588 #
589 do_test misc5-7.2 {
590 sqlite3 db2 :memory:
591 catchsql {
592 CREATE TABLE t1(x UNIQUE);
593 PRAGMA writable_schema=ON;
594 UPDATE sqlite_master SET sql='CREATE table t(o CHECK(((((((((((((((((((((((( (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((;VALUES(o)' ;
595 BEGIN;
596 CREATE TABLE t2(y);
597 ROLLBACK;
598 DROP TABLE IF EXISTS D;
599 } db2
600 } {0 {}}
601 db2 close
602
603
586 # Ticket #1911 604 # Ticket #1911
587 # 605 #
588 ifcapable compound { 606 ifcapable compound {
589 do_test misc5-9.1 { 607 do_test misc5-9.1 {
590 execsql { 608 execsql {
591 SELECT name, type FROM sqlite_master WHERE name IS NULL 609 SELECT name, type FROM sqlite_master WHERE name IS NULL
592 UNION 610 UNION
593 SELECT type, name FROM sqlite_master WHERE type IS NULL 611 SELECT type, name FROM sqlite_master WHERE type IS NULL
594 ORDER BY 1, 2, 1, 2, 1, 2 612 ORDER BY 1, 2, 1, 2, 1, 2
595 } 613 }
(...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 2305843009213693954\ 1883 2305843009213693954\
1866 4611686018427387902\ 1884 4611686018427387902\
1867 4611686018427387903\ 1885 4611686018427387903\
1868 4611686018427387904\ 1886 4611686018427387904\
1869 4611686018427387905\ 1887 4611686018427387905\
1870 4611686018427387906\ 1888 4611686018427387906\
1871 9223372036854775806\ 1889 9223372036854775806\
1872 9223372036854775807} 1890 9223372036854775807}
1873 1891
1874 finish_test 1892 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/misc4.test ('k') | third_party/sqlite/src/test/misc8.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698