Nitin Bhosale wrote:
> I am trying to port sqlite3 VFS implementation on freertos(FATFS on
> stm32 ARM CortexM4). I have created an amalgamation with sqlite3
> version 3.12 base code.
>
> When I run the below code it runs to create a database and a query
> "create a table cars". But when query "insert" is run then fails with
> following error:- error no: 26(SQLITE_NOTADB)
> error: "file is encrypted or is not a database"
>
> I have given following options during compile:
>       SQLITE_THREADSAFE=0
>       SQLITE_OS_OTHER=1
>       SQLITE_OMIT_WAL=1

You did not set SQLITE_TEMP_STORE as specified in the demovfs
documentation. Anyway, you have to trace the actual file system calls
to find out where the wrong data comes from.


Regards,
Clemens

Reply via email to