Open AdamHeavens opened 1 month ago
@AdamHeavens please see this: https://github.com/siara-cc/esp32_arduino_sqlite3_lib/issues/94 I have kept it pending because I am not sure if increasing YYSTACKDEPTH is the right solution.
Thank you, I have changed YYSTACKDEPTH to 30 and reverting to version 3.25 has resolved the issue
I am getting the above error when trying to create a trigger, this only seems to be the case with complex queries. For example
CREATE TRIGGER delete_oldest_logs AFTER INSERT ON Logs WHEN (SELECT COUNT(*) FROM Logs) > 100000 BEGIN DELETE FROM Logs WHERE id = (SELECT id FROM Logs ORDER BY timestamp LIMIT 1); END; E (2126) LogDatabase: Trigger query preparation failed: parser stack overflow
The above query results in a parser stack overflow, All other queries are working correctly, include creating the table
I have tried also with the later version of SQLite from the PR (Upgrade to SQLite 3.46.0)
Any help appreciated!