Skip to content

Commit

Permalink
fix(frontend): wrong stmt type while DROP VIEW IF EXISTS (#15335)
Browse files Browse the repository at this point in the history
Signed-off-by: TennyZhuang <[email protected]>
  • Loading branch information
TennyZhuang authored Feb 28, 2024
1 parent ff02b76 commit 32ea157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/src/handler/drop_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub async fn handle_drop_view(
Ok((t, s)) => (t, s),
Err(e) => {
return if if_exists {
Ok(RwPgResponse::builder(StatementType::DROP_MATERIALIZED_VIEW)
Ok(RwPgResponse::builder(StatementType::DROP_VIEW)
.notice(format!("view \"{}\" does not exist, skipping", table_name))
.into())
} else {
Expand Down

0 comments on commit 32ea157

Please sign in to comment.