diff --git a/src/query/plan/operator.cpp b/src/query/plan/operator.cpp index 9dd3ceed8..df840cb85 100644 --- a/src/query/plan/operator.cpp +++ b/src/query/plan/operator.cpp @@ -3929,7 +3929,7 @@ class ModifyUserCursor : public Cursor { } } else { // Update an existing user. - auto user = ctx.auth_->GetUser(self_.username()); + user = ctx.auth_->GetUser(self_.username()); if (!user) { throw QueryRuntimeException( fmt::format("User '{}' doesn't exist!", self_.username()));