Add support for writeable queries in LET SQL statements

This commit is contained in:
Tobie Morgan Hitchcock 2022-08-29 12:29:10 +01:00
parent 0bedaec6bb
commit 8d08c34ddf

View file

@ -220,7 +220,10 @@ impl<'a> Executor<'a> {
_ => break, _ => break,
} }
// Cancel transaction // Cancel transaction
self.cancel(loc).await; match stm.writeable() {
true => self.commit(loc).await,
false => self.cancel(loc).await,
};
// Return nothing // Return nothing
Ok(Value::None) Ok(Value::None)
} }