| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |