From 03543d5169667691c2d8a1d4b81ce9cc00c5b071 Mon Sep 17 00:00:00 2001 From: Ilya Eremin Date: Mon, 24 May 2021 15:16:06 +0300 Subject: [PATCH] Correct error message for DROP VIEW --- src/dsql/DdlNodes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dsql/DdlNodes.h b/src/dsql/DdlNodes.h index 83823f1e99a..3c07b01ac2d 100644 --- a/src/dsql/DdlNodes.h +++ b/src/dsql/DdlNodes.h @@ -1636,7 +1636,8 @@ class DropRelationNode : public DdlNode protected: virtual void putErrorPrefix(Firebird::Arg::StatusVector& statusVector) { - statusVector << Firebird::Arg::Gds(isc_dsql_drop_table_failed) << name; + statusVector << Firebird::Arg::Gds(view ? isc_dsql_drop_view_failed : + isc_dsql_drop_table_failed) << name; } public: