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

Side by Side Diff: third_party/sqlite/src/test/misc3.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 # 2003 December 17 1 # 2003 December 17
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 do_test misc3-6.10 { 263 do_test misc3-6.10 {
264 set x [execsql { 264 set x [execsql {
265 CREATE TABLE ex1( 265 CREATE TABLE ex1(
266 a INTEGER DEFAULT 54321, 266 a INTEGER DEFAULT 54321,
267 b TEXT DEFAULT "hello", 267 b TEXT DEFAULT "hello",
268 c REAL DEFAULT 3.1415926 268 c REAL DEFAULT 3.1415926
269 ); 269 );
270 CREATE UNIQUE INDEX ex1i1 ON ex1(a); 270 CREATE UNIQUE INDEX ex1i1 ON ex1(a);
271 EXPLAIN REINDEX; 271 EXPLAIN REINDEX;
272 }] 272 }]
273 regexp { IsUnique \d+ \d+ \d+ \d+ } $x 273 ifcapable mergesort {
274 regexp { SorterCompare \d+ \d+ \d+ } $x
275 } else {
276 regexp { IsUnique \d+ \d+ \d+ \d+ } $x
277 }
274 } {1} 278 } {1}
275 if {[regexp {16} [db one {PRAGMA encoding}]]} { 279 if {[regexp {16} [db one {PRAGMA encoding}]]} {
276 do_test misc3-6.11-utf16 { 280 do_test misc3-6.11-utf16 {
277 set x [execsql { 281 set x [execsql {
278 EXPLAIN SELECT a+123456789012, b*4.5678, c FROM ex1 ORDER BY +a, b DESC 282 EXPLAIN SELECT a+123456789012, b*4.5678, c FROM ex1 ORDER BY +a, b DESC
279 }] 283 }]
280 set y [regexp { 123456789012 } $x] 284 set y [regexp { 123456789012 } $x]
281 lappend y [regexp { 4.5678 } $x] 285 lappend y [regexp { 4.5678 } $x]
282 lappend y [regexp {,-BINARY} $x] 286 lappend y [regexp {,-B} $x]
283 } {1 1 1} 287 } {1 1 1}
284 } else { 288 } else {
285 do_test misc3-6.11-utf8 { 289 do_test misc3-6.11-utf8 {
286 set x [execsql { 290 set x [execsql {
287 EXPLAIN SELECT a+123456789012, b*4.5678, c FROM ex1 ORDER BY +a, b DESC 291 EXPLAIN SELECT a+123456789012, b*4.5678, c FROM ex1 ORDER BY +a, b DESC
288 }] 292 }]
289 set y [regexp { 123456789012 } $x] 293 set y [regexp { 123456789012 } $x]
290 lappend y [regexp { 4.5678 } $x] 294 lappend y [regexp { 4.5678 } $x]
291 lappend y [regexp { hello } $x] 295 lappend y [regexp { hello } $x]
292 lappend y [regexp {,-BINARY} $x] 296 lappend y [regexp {,-B} $x]
293 } {1 1 1 1} 297 } {1 1 1 1}
294 } 298 }
295 } 299 }
296 300
297 ifcapable {trigger} { 301 ifcapable {trigger} {
298 # Ticket #640: vdbe stack overflow with a LIMIT clause on a SELECT inside 302 # Ticket #640: vdbe stack overflow with a LIMIT clause on a SELECT inside
299 # of a trigger. 303 # of a trigger.
300 # 304 #
301 do_test misc3-7.1 { 305 do_test misc3-7.1 {
302 execsql { 306 execsql {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 } 346 }
343 } {2} 347 } {2}
344 do_test misc-8.2 { 348 do_test misc-8.2 {
345 execsql { 349 execsql {
346 SELECT count(*) FROM t3 WHERE 1+(b IN ('abc','xyz'))==2 350 SELECT count(*) FROM t3 WHERE 1+(b IN ('abc','xyz'))==2
347 } 351 }
348 } {2} 352 } {2}
349 } 353 }
350 354
351 finish_test 355 finish_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698