-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too many sql statements and it fails #93
Comments
Hi can you please post the entire sketch? |
Thank you for the help. Ive removed as much as possible so that I can reproduce the error without all the other stuff. Below is the complete code that creates the error and the output on my pc.
The output
|
@zaplakkies I modified your sketch and found that it is throwing I/O error when creating the tables for which insert fails. SPIFFS is known to cause I/O errors and people recommend LITTLEFS instead: #50 (comment)
|
Thank you for the help, I'll give LITTLEFS a try and give some feedback. I wish there was another system other than the ESP. I'm finding so many quirks like this. |
I can confirm that this problem does not appear on LittleFS. It was a bit of a mission to get LittleFS working as intended, but so worth it it seems. |
I'm trying to create a routine that initializes the database if we want to do a factory reset. When I run the commands in sequence like this the last few table creates do not happen and subsequent inserts fail with the table does not exist. Ive tried big delays between statements but I still get the error. Swapping the order only changes which ones don't work anymore.
If I run each statement separately from the sql.html sample in the example directly, all the statements pass without issue.
Please can someone help me see where I'm going wrong or how to split it up so I can get it working.
The text was updated successfully, but these errors were encountered: