[sqlite] bug when saving database under dos

2017-09-22 Thread janezz55 .
Do you have the "write" rights to the directory? yes, the file does get written (file size 0), but the error is returned anyway. Do you already have a file of that name in that folder ? no, I can provide an arbitrary name and it won't work. The file does get written (file size 0), but the error

[sqlite] bug when saving database under dos

2017-09-22 Thread janezz55 .
Hello! Saving the database under dos-compiled sqlite does not work. How can I go about debugging this (probably, just a small fix is necessary)? Maybe you have experience with this bug? I made an image of the problem: https://i.stack.imgur.com/a09zN.png

[sqlite] bug while compiling for djgpp

2017-09-20 Thread janezz55 .
Good news, sqlite still works under DOS. Bad news, some compile-time tweaks are needed. The most pressing is the definition of the osFstat macro, which needs to be changed to #ifdef __DJGPP__ { "fstat",0, 0 }, #define osFstat(a,b)0 #else previously, it accepted 3 ar

[sqlite] possible sqlite3_step() bug in sqlite 3.10.0

2016-03-02 Thread janezz55 .
The sqlite3_reset() call is supposedly optional since version 3.7.0 if a statement returned SQLITE_DONE, but I find this is not the case for prepared INSERT and DELETE statements. Stepping those prepared statements does not return an error, but it also does not execute the prepared statement. Calli