Skip to content

Commit 0a8485b

Browse files
committed
prevent prepared- statements from executing again when they go out of scope
1 parent ee1654e commit 0a8485b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hdr/sqlite_modern_cpp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ namespace sqlite {
132132
if(hresult != SQLITE_DONE) {
133133
exceptions::throw_sqlite_error(hresult);
134134
}
135+
used(true); /* prevent from executing again when goes out of scope */
135136
}
136137

137138
void used(bool state) { execution_started = state; }

0 commit comments

Comments
 (0)