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

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

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. Created 5 years, 10 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
OLDNEW
1 # 2011 Jan 21 1 # 2011 Jan 21
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 do_execsql_test 2.1 { 121 do_execsql_test 2.1 {
122 CREATE VIRTUAL TABLE x1 USING fts4; 122 CREATE VIRTUAL TABLE x1 USING fts4;
123 INSERT INTO x1 VALUES('Cloudy, with a high near 16'); 123 INSERT INTO x1 VALUES('Cloudy, with a high near 16');
124 INSERT INTO x1 VALUES('Wind chill values as low as -13'); 124 INSERT INTO x1 VALUES('Wind chill values as low as -13');
125 } 125 }
126 126
127 do_trace_test 2.2 { 127 do_trace_test 2.2 {
128 INSERT INTO x1 VALUES('North northwest wind between 8 and 14 mph'); 128 INSERT INTO x1 VALUES('North northwest wind between 8 and 14 mph');
129 } { 129 } {
130 "INSERT INTO x1 VALUES('North northwest wind between 8 and 14 mph');" 130 "INSERT INTO x1 VALUES('North northwest wind between 8 and 14 mph');"
131 "-- DELETE FROM 'main'.'x1_segdir' WHERE level = ?"
131 "-- INSERT INTO 'main'.'x1_content' VALUES(?,(?))" 132 "-- INSERT INTO 'main'.'x1_content' VALUES(?,(?))"
132 "-- REPLACE INTO 'main'.'x1_docsize' VALUES(?,?)" 133 "-- REPLACE INTO 'main'.'x1_docsize' VALUES(?,?)"
133 "-- SELECT value FROM 'main'.'x1_stat' WHERE id=0" 134 "-- SELECT value FROM 'main'.'x1_stat' WHERE id=?"
134 "-- REPLACE INTO 'main'.'x1_stat' VALUES(0,?)" 135 "-- REPLACE INTO 'main'.'x1_stat' VALUES(?,?)"
135 "-- SELECT (SELECT max(idx) FROM 'main'.'x1_segdir' WHERE level = ?) + 1" 136 "-- SELECT (SELECT max(idx) FROM 'main'.'x1_segdir' WHERE level = ?) + 1"
136 "-- SELECT coalesce((SELECT max(blockid) FROM 'main'.'x1_segments') + 1, 1)" 137 "-- SELECT coalesce((SELECT max(blockid) FROM 'main'.'x1_segments') + 1, 1)"
137 "-- INSERT INTO 'main'.'x1_segdir' VALUES(?,?,?,?,?,?)" 138 "-- REPLACE INTO 'main'.'x1_segdir' VALUES(?,?,?,?,?,?)"
139 "-- SELECT level, idx, end_block FROM 'main'.'x1_segdir' WHERE level BETWEEN ? AND ? ORDER BY level DESC, idx ASC"
138 } 140 }
139 141
140 do_trace_test 2.3 { 142 do_trace_test 2.3 {
141 INSERT INTO x1(x1) VALUES('optimize'); 143 INSERT INTO x1(x1) VALUES('optimize');
142 } { 144 } {
143 "INSERT INTO x1(x1) VALUES('optimize');" 145 "INSERT INTO x1(x1) VALUES('optimize');"
144 "-- SELECT idx, start_block, leaves_end_block, end_block, root FROM 'main'.' x1_segdir' ORDER BY level DESC, idx ASC" 146 "-- SELECT DISTINCT level / (1024 * ?) FROM 'main'.'x1_segdir'"
145 "-- SELECT count(*), max(level) FROM 'main'.'x1_segdir'" 147 "-- SELECT idx, start_block, leaves_end_block, end_block, root FROM 'main'.' x1_segdir' WHERE level BETWEEN ? AND ?ORDER BY level DESC, idx ASC"
148 "-- SELECT max(level) FROM 'main'.'x1_segdir' WHERE level BETWEEN ? AND ?"
146 "-- SELECT coalesce((SELECT max(blockid) FROM 'main'.'x1_segments') + 1, 1)" 149 "-- SELECT coalesce((SELECT max(blockid) FROM 'main'.'x1_segments') + 1, 1)"
147 "-- DELETE FROM 'main'.'x1_segdir'" 150 "-- DELETE FROM 'main'.'x1_segdir' WHERE level BETWEEN ? AND ?"
148 "-- INSERT INTO 'main'.'x1_segdir' VALUES(?,?,?,?,?,?)" 151 "-- REPLACE INTO 'main'.'x1_segdir' VALUES(?,?,?,?,?,?)"
149 } 152 }
150 } 153 }
151 154
152 finish_test 155 finish_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698