Re: [sqlite] sqlite on freertos/fatfs : SQLITE_NOTADB during create table

2018-08-01 Thread Bram Peeters
] sqlite on freertos/fatfs : SQLITE_NOTADB during create table On 07/28/2018 10:51 PM, Bram Peeters wrote: > Ah maybe that is also interesting to know: i put a breakpoint on the write > convenience wrapper in sqlite, it is never called. > So it is not that there is a problem with the write

Re: [sqlite] sqlite on freertos/fatfs : SQLITE_NOTADB during create table

2018-07-28 Thread Dan Kennedy
ite-users-boun...@mailinglists.sqlite.org] on behalf of Bram Peeters [bram.peet...@dekimo.com] Sent: Saturday, July 28, 2018 17:45 To: SQLite mailing list Subject: Re: [sqlite] sqlite on freertos/fatfs : SQLITE_NOTADB during create table An empty file and a file filled with zeros are two differ

Re: [sqlite] sqlite on freertos/fatfs : SQLITE_NOTADB during create table

2018-07-28 Thread Bram Peeters
...@mailinglists.sqlite.org] on behalf of Bram Peeters [bram.peet...@dekimo.com] Sent: Saturday, July 28, 2018 17:45 To: SQLite mailing list Subject: Re: [sqlite] sqlite on freertos/fatfs : SQLITE_NOTADB during create table >An empty file and a file filled with zeros are two different things The file is empty/has siz

Re: [sqlite] sqlite on freertos/fatfs : SQLITE_NOTADB during create table

2018-07-28 Thread Bram Peeters
.de] Sent: Saturday, July 28, 2018 15:07 To: sqlite-users@mailinglists.sqlite.org Subject: Re: [sqlite] sqlite on freertos/fatfs : SQLITE_NOTADB during create table Bram Peeters wrote: > He reads a page from the file in sqlite3PagerSharedLock, but the file is > still 0 so the page is all zeros.

Re: [sqlite] sqlite on freertos/fatfs : SQLITE_NOTADB during create table

2018-07-28 Thread Clemens Ladisch
Bram Peeters wrote: > He reads a page from the file in sqlite3PagerSharedLock, but the file is > still 0 so the page is all zeros. An empty file and a file filled with zeros are two different things. Does the file system return SQLITE_IOERR_SHORT_READ? Regards, Clemens

[sqlite] sqlite on freertos/fatfs : SQLITE_NOTADB during create table

2018-07-28 Thread Bram Peeters
Hi, I am trying to get sqlite working on a freertos/fatfs based STM32 embedded system. I started from the 3.24.0 amalgamation an did the steps in https://www.sqlite.org/custombuild.html. The VFS is based on the https://www.sqlite.org/src/doc/trunk/src/test_demovfs.c code (though I did