SQLite
Check-in [cd806723]
Not logged in
Overview
SHA1 Hash:cd8067238439638bcfd3966d55d2a3990f36d702
Date: 2013-02-26 18:54:18
User: mistachkin
Comment:In the incrvacuum3 test, add missing call to the Tcl close command.
Tags And Properties
Context
2013-03-01
01:07
[d7343558] Always use strncmp() rather than memcmp() when comparing strings where one or other string might be less than the length parameter, since optimized versions of memcmp() might read past the first difference and in so doing generate an access violation. (user: drh, tags: trunk)
2013-02-26
18:54
[cd806723] In the incrvacuum3 test, add missing call to the Tcl close command. (user: mistachkin, tags: trunk)
12:57
[c2d5a23b] When comparing names during name resolution, make sure the names match exactly and that one name isn't merely a prefix of the other. Fix for ticket [7a31705a7e6c95d51]. (user: drh, tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test/incrvacuum3.test.

55
56
57
58
59
60
61

62
63
64
65
66
67
68
  if {$sz>$::sqlite_pending_byte} {
    puts -nonewline $fd2 [read $fd $::sqlite_pending_byte]
    seek $fd [expr $::sqlite_pending_byte+512]
    seek $fd2 [expr $::sqlite_pending_byte+512]
  }
  puts -nonewline $fd2 [read $fd]
  close $fd2


  # Open "test2.db" and check it is Ok.
  sqlite3 dbcheck test2.db
  set ret [dbcheck eval { PRAGMA integrity_check }]
  dbcheck close
  set ret
}







>







55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
  if {$sz>$::sqlite_pending_byte} {
    puts -nonewline $fd2 [read $fd $::sqlite_pending_byte]
    seek $fd [expr $::sqlite_pending_byte+512]
    seek $fd2 [expr $::sqlite_pending_byte+512]
  }
  puts -nonewline $fd2 [read $fd]
  close $fd2
  close $fd

  # Open "test2.db" and check it is Ok.
  sqlite3 dbcheck test2.db
  set ret [dbcheck eval { PRAGMA integrity_check }]
  dbcheck close
  set ret
}