Fixes #3867 As described in the issue above we return incorrect results when changing user within a transaction. This causes us to error out instead.