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
We currently return an error when using the RETURNING NOTHING syntax outside of transactions. We should allow the syntax and simply synchronize immediately after instead, still returning the mock result.
The text was updated successfully, but these errors were encountered:
Fixescockroachdb#14551.
This change adds support for `RETURNING NOTHING` statements outside of
explicit transactions. Because statements running outside of an explicit
transaction have a transactional scope of exactly one statement,
parallel statement execution semantics would deem that we synchronize
immediately after running the async statement. Instead, we expose
identical behavior by simply running the statement synchronously and
mocking out the results, as is expected from `RETURNING NOTHING`
statements.
Fixescockroachdb#14551.
This change adds support for `RETURNING NOTHING` statements outside of
explicit transactions. Because statements running outside of an explicit
transaction have a transactional scope of exactly one statement,
parallel statement execution semantics would deem that we synchronize
immediately after running the async statement. Instead, we expose
identical behavior by simply running the statement synchronously and
mocking out the results, as is expected from `RETURNING NOTHING`
statements.
We currently return an error when using the
RETURNING NOTHING
syntax outside of transactions. We should allow the syntax and simply synchronize immediately after instead, still returning the mock result.The text was updated successfully, but these errors were encountered: