Re: [sqlite] reading beyond end of file

2009-01-19 Thread Dave Toll
Returning SQLITE_IOERR_SHORT_READ in this case solves my problem. Many thanks, Dave. -Original Message- From: D. Richard Hipp [mailto:d...@hwaci.com] Sent: 16 January 2009 15:57 To: General Discussion of SQLite Database Subject: Re: [sqlite] reading beyond end of file On Jan 16, 2009

[sqlite] reading beyond end of file

2009-01-16 Thread Dave Toll
Hello list I recently upgraded from SQLite 3.6.7 to 3.6.10 and I'm now noticing some apparently undesirable behaviour. I'm running on an embedded system with my own VFS implementation, and I see in my tests that SQLite is now trying to read journal files at an offset beyond the end of the

Re: [sqlite] reading beyond end of file

2009-01-16 Thread D. Richard Hipp
On Jan 16, 2009, at 5:38 PM, Dave Toll wrote: Hello list I recently upgraded from SQLite 3.6.7 to 3.6.10 and I'm now noticing some apparently undesirable behaviour. I'm running on an embedded system with my own VFS implementation, and I see in my tests that SQLite is now trying to

Re: [sqlite] reading beyond end of file

2009-01-16 Thread Noah Hart
Hipp Sent: Friday, January 16, 2009 3:30 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] reading beyond end of file Importance: High On Jan 16, 2009, at 5:38 PM, Dave Toll wrote: Hello list I recently upgraded from SQLite 3.6.7 to 3.6.10 and I'm now noticing some apparently

Re: [sqlite] reading beyond end of file

2009-01-16 Thread D. Richard Hipp
On Jan 16, 2009, at 6:43 PM, Noah Hart wrote: Just a random thought ... This is new code in pager.c, and if Pager-journalOff is at the end of the file, then perhaps it could cause his problem. ** ** To work around this, if the journal file does appear to contain **

Re: [sqlite] reading beyond end of file

2009-01-16 Thread D . Richard Hipp
On Jan 16, 2009, at 6:54 PM, D. Richard Hipp wrote: On Jan 16, 2009, at 6:43 PM, Noah Hart wrote: Just a random thought ... This is new code in pager.c, and if Pager-journalOff is at the end of the file, then perhaps it could cause his problem. ** ** To work around this, if

Re: [sqlite] reading beyond end of file

2009-01-16 Thread Dave Toll
Database Subject: Re: [sqlite] reading beyond end of file On Jan 16, 2009, at 5:38 PM, Dave Toll wrote: Hello list I recently upgraded from SQLite 3.6.7 to 3.6.10 and I'm now noticing some apparently undesirable behaviour. I'm running on an embedded system with my own VFS implementation