SQLite Forum

Feature request: expose additional state to identify left-open statements
Login
To be clear, I'm not trying to automatically reset statements; I'm trying to determine if statements were left unfinalized (even if they _had_ run to completion) and crash the app on the developer's machine before it can cause problems for users. For this to work, I need to exclude the persistent statements generated internally by extensions like fts, which is why I'm asking for the persistent flag to be exposed. Detecting run-to-completion-but-not-reset statements is less important, but might help diagnose potential cases where internal extension statements are left in an unexpected state.