382750dbd4
changes: -fixed bugs which can lead to database corruption under obscure and difficult to reproduce circumstances -new sqlite3_prepare_v2() API -bug fixes in the command-line shell -enhancements to the query optimizer pkgsrc change: fix a selftest which couldn't work as intended due to misuse of O_APPEND
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
$NetBSD: patch-ab,v 1.1 2007/01/11 19:08:48 drochner Exp $
|
|
|
|
--- test/corrupt2.test.orig 2007-01-11 15:51:25.000000000 +0100
|
|
+++ test/corrupt2.test
|
|
@@ -33,7 +33,7 @@ do_test corrupt2-1.2 {
|
|
file delete -force corrupt.db
|
|
file delete -force corrupt.db-journal
|
|
copy_file test.db corrupt.db
|
|
- set f [open corrupt.db a]
|
|
+ set f [open corrupt.db r+]
|
|
seek $f 8 start
|
|
puts $f blah
|
|
close $f
|
|
@@ -51,7 +51,7 @@ do_test corrupt2-1.3 {
|
|
file delete -force corrupt.db
|
|
file delete -force corrupt.db-journal
|
|
copy_file test.db corrupt.db
|
|
- set f [open corrupt.db a]
|
|
+ set f [open corrupt.db r+]
|
|
fconfigure $f -encoding binary
|
|
seek $f 16 start
|
|
puts -nonewline $f "\x00\xFF"
|
|
@@ -70,7 +70,7 @@ do_test corrupt2-1.4 {
|
|
file delete -force corrupt.db
|
|
file delete -force corrupt.db-journal
|
|
copy_file test.db corrupt.db
|
|
- set f [open corrupt.db a]
|
|
+ set f [open corrupt.db r+]
|
|
fconfigure $f -encoding binary
|
|
seek $f 101 start
|
|
puts -nonewline $f "\xFF\xFF"
|
|
@@ -89,7 +89,7 @@ do_test corrupt2-1.5 {
|
|
file delete -force corrupt.db
|
|
file delete -force corrupt.db-journal
|
|
copy_file test.db corrupt.db
|
|
- set f [open corrupt.db a]
|
|
+ set f [open corrupt.db r+]
|
|
fconfigure $f -encoding binary
|
|
seek $f 101 start
|
|
puts -nonewline $f "\x00\xC8"
|