You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for your comment. I hadn't tested without transactions. I will leave the ticket open as I don't know if this is an intended feature or not (and could not find it in the docs).
Describe the bug
When using an
if
statement inside a transaction and assigning to a variable,the variable value isn't updated outside the transaction.
Without the
if
, the variable value is successfully updated outside the transaction.This works (
$a
is equal to"alice"
):This works too (the transaction returns
"alice"
):Steps to reproduce
Expected behaviour
$a
should be equal to"alice"
SurrealDB version
surreal 2.0.4 for linux on x86_64
Contact Details
No response
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: