Add support for writeable queries in LET SQL statements
This commit is contained in:
parent
0bedaec6bb
commit
8d08c34ddf
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue