Re: [sqlite] offset of file position is beyond EOF

2017-08-19 Thread J Decker
On Sat, Aug 19, 2017 at 4:44 AM, Jacky Lam wrote: > I implement my own vfs analogous to the vfs like fopen, fclose, fseek, > fwrite, fread and etc. > When I iterate a sql statement up to millions records, the fwrite fail due > to pos of fseek is beyond the eof position. > I am wondering whether t

Re: [sqlite] offset of file position is beyond EOF

2017-08-19 Thread Jacky Lam
I implement my own vfs analogous to the vfs like fopen, fclose, fseek, fwrite, fread and etc. When I iterate a sql statement up to millions records, the fwrite fail due to pos of fseek is beyond the eof position. I am wondering whether the pos sometimes beyond eof is normal. If it is normal, I can

Re: [sqlite] offset of file position is beyond EOF

2017-08-19 Thread Clemens Ladisch
Jacky Lam wrote: > I recently meet a case that the file position offset of a pager is beyond > EOF position of db. says: | The lseek() function shall allow the file offset to be set beyond the end | of the existing data in the

[sqlite] offset of file position is beyond EOF

2017-08-18 Thread Jacky Lam
Hi All, I recently meet a case that the file position offset of a pager is beyond EOF position of db. I would like to know if it is normal or it is a bug makes from my OS ( SQLITE_OS_OTHER=1)? Thanks. Jacky ___ sqlite-users mailing list sqlite-users@ma