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

Side by Side Diff: third_party/sqlite/src/test/misc5.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/misc4.test ('k') | third_party/sqlite/src/test/misc7.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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 ) 504 )
505 ) 505 )
506 ORDER BY LOWER(artist) ASC; 506 ORDER BY LOWER(artist) ASC;
507 } 507 }
508 } {one} 508 } {one}
509 } 509 }
510 510
511 # Ticket #1370. Do not overwrite small files (less than 1024 bytes) 511 # Ticket #1370. Do not overwrite small files (less than 1024 bytes)
512 # when trying to open them as a database. 512 # when trying to open them as a database.
513 # 513 #
514 do_test misc5-4.1 { 514 if {[permutation] == ""} {
515 db close 515 do_test misc5-4.1 {
516 file delete -force test.db 516 db close
517 set fd [open test.db w] 517 file delete -force test.db
518 puts $fd "This is not really a database" 518 set fd [open test.db w]
519 close $fd 519 puts $fd "This is not really a database"
520 sqlite3 db test.db 520 close $fd
521 catchsql { 521 sqlite3 db test.db
522 CREATE TABLE t1(a,b,c); 522 catchsql {
523 } 523 CREATE TABLE t1(a,b,c);
524 } {1 {file is encrypted or is not a database}} 524 }
525 } {1 {file is encrypted or is not a database}}
526 }
525 527
526 # Ticket #1371. Allow floating point numbers of the form .N or N. 528 # Ticket #1371. Allow floating point numbers of the form .N or N.
527 # 529 #
528 do_test misc5-5.1 { 530 do_test misc5-5.1 {
529 execsql {SELECT .1 } 531 execsql {SELECT .1 }
530 } 0.1 532 } 0.1
531 do_test misc5-5.2 { 533 do_test misc5-5.2 {
532 execsql {SELECT 2. } 534 execsql {SELECT 2. }
533 } 2.0 535 } 2.0
534 do_test misc5-5.3 { 536 do_test misc5-5.3 {
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1863 2305843009213693954\ 1865 2305843009213693954\
1864 4611686018427387902\ 1866 4611686018427387902\
1865 4611686018427387903\ 1867 4611686018427387903\
1866 4611686018427387904\ 1868 4611686018427387904\
1867 4611686018427387905\ 1869 4611686018427387905\
1868 4611686018427387906\ 1870 4611686018427387906\
1869 9223372036854775806\ 1871 9223372036854775806\
1870 9223372036854775807} 1872 9223372036854775807}
1871 1873
1872 finish_test 1874 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/misc4.test ('k') | third_party/sqlite/src/test/misc7.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698