diff --git a/src/query/management/src/procedure/procedure_mgr.rs b/src/query/management/src/procedure/procedure_mgr.rs index 1c0de9cd5e97e..dfba2d85b3448 100644 --- a/src/query/management/src/procedure/procedure_mgr.rs +++ b/src/query/management/src/procedure/procedure_mgr.rs @@ -112,9 +112,7 @@ impl ProcedureMgr { }) .await?; if dropped.is_none() { - if req.if_exists { - // Ok - } else { + if !req.if_exists { return Err(AppError::from(name_ident.unknown_error("drop procedure")).into()); } }