We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee1654e commit 66d4eceCopy full SHA for 66d4ece
hdr/sqlite_modern_cpp.h
@@ -122,6 +122,7 @@ namespace sqlite {
122
sqlite3_reset(_stmt.get());
123
sqlite3_clear_bindings(_stmt.get());
124
_inx = 1;
125
+ used(false);
126
}
127
128
void execute() {
@@ -132,6 +133,7 @@ namespace sqlite {
132
133
if(hresult != SQLITE_DONE) {
134
exceptions::throw_sqlite_error(hresult);
135
136
+ used(true); /* prevent from executing again when goes out of scope */
137
138
139
void used(bool state) { execution_started = state; }
0 commit comments