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

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

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/test/alter4.test ('k') | third_party/sqlite/src/test/analyze2.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 July 22 1 # 2005 July 22
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 CREATE INDEX stat1idx ON sqlite_stat1(idx); 66 CREATE INDEX stat1idx ON sqlite_stat1(idx);
67 } 67 }
68 } {1 {table sqlite_stat1 may not be indexed}} 68 } {1 {table sqlite_stat1 may not be indexed}}
69 do_test analyze-1.6.3 { 69 do_test analyze-1.6.3 {
70 catchsql { 70 catchsql {
71 CREATE INDEX main.stat1idx ON SQLite_stat1(idx); 71 CREATE INDEX main.stat1idx ON SQLite_stat1(idx);
72 } 72 }
73 } {1 {table sqlite_stat1 may not be indexed}} 73 } {1 {table sqlite_stat1 may not be indexed}}
74 do_test analyze-1.7 { 74 do_test analyze-1.7 {
75 execsql { 75 execsql {
76 SELECT * FROM sqlite_stat1 76 SELECT * FROM sqlite_stat1 WHERE idx NOT NULL
77 } 77 }
78 } {} 78 } {}
79 do_test analyze-1.8 { 79 do_test analyze-1.8 {
80 catchsql { 80 catchsql {
81 ANALYZE main 81 ANALYZE main
82 } 82 }
83 } {0 {}} 83 } {0 {}}
84 do_test analyze-1.9 { 84 do_test analyze-1.9 {
85 execsql { 85 execsql {
86 SELECT * FROM sqlite_stat1 86 SELECT * FROM sqlite_stat1 WHERE idx NOT NULL
87 } 87 }
88 } {} 88 } {}
89 do_test analyze-1.10 { 89 do_test analyze-1.10 {
90 catchsql { 90 catchsql {
91 CREATE TABLE t1(a,b); 91 CREATE TABLE t1(a,b);
92 ANALYZE main.t1; 92 ANALYZE main.t1;
93 } 93 }
94 } {0 {}} 94 } {0 {}}
95 do_test analyze-1.11 { 95 do_test analyze-1.11 {
96 execsql { 96 execsql {
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 289
290 # This test corrupts the database file so it must be the last test 290 # This test corrupts the database file so it must be the last test
291 # in the series. 291 # in the series.
292 # 292 #
293 do_test analyze-99.1 { 293 do_test analyze-99.1 {
294 execsql { 294 execsql {
295 PRAGMA writable_schema=on; 295 PRAGMA writable_schema=on;
296 UPDATE sqlite_master SET sql='nonsense' WHERE name='sqlite_stat1'; 296 UPDATE sqlite_master SET sql='nonsense' WHERE name='sqlite_stat1';
297 } 297 }
298 db close 298 db close
299 sqlite3 db test.db 299 catch { sqlite3 db test.db }
300 catchsql { 300 catchsql {
301 ANALYZE 301 ANALYZE
302 } 302 }
303 } {1 {malformed database schema (sqlite_stat1) - near "nonsense": syntax error}} 303 } {1 {malformed database schema (sqlite_stat1) - near "nonsense": syntax error}}
304 304
305 305
306 finish_test 306 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/alter4.test ('k') | third_party/sqlite/src/test/analyze2.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698