minmax3.test has a routine at line 23

# This procedure sets the value of the file-format in file 'test.db'
# to $newval. Also, the schema cookie is incremented.
# 
proc set_file_format {newval} {
  hexio_write test.db 44 [hexio_render_int32 $newval]
  set schemacookie [hexio_get_int [hexio_read test.db 40 4]]
  incr schemacookie
  hexio_write test.db 40 [hexio_render_int32 $schemacookie]
  return {}
}

Clearly if the database is encrypted, then plugging data into bytes 40-44
will corrupt page 1.

Question:

Should this test be commented out with a test like :
if {![sqlite3 -has-codec]}  ...

or, should a codec implementation leave the schema bytes on page 1 alone?


Thanks,

Noah

-- 
View this message in context: 
http://old.nabble.com/Error-in-minmax3.test-with-SQLITE_HAS_CODEC-tp28951238p28951238.html
Sent from the SQLite mailing list archive at Nabble.com.

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to