We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8672f0b commit 699ab1dCopy full SHA for 699ab1d
1 file changed
cpp/react-native-quick-sqlite.cpp
@@ -221,6 +221,7 @@ void installSequel(jsi::Runtime &rt, const char *docPath)
221
res.setProperty(rt, "commands", jsi::Value(commands));
222
return move(res);
223
} catch (...) {
224
+ sqFile.close();
225
sequel_execute_literal_update(dbName, "ROLLBACK");
226
jsi::detail::throwJSError(rt, "Unexpected error, transaction was rolledback");
227
return {};
0 commit comments