From 4d0b33958df8efb8d5c55ae6c78cfd032a732029 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 13 Oct 2020 14:24:29 +0200 Subject: [PATCH] don't show DBUG_ASSERT to plugins --- sql/sql_basic_types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/sql_basic_types.h b/sql/sql_basic_types.h index 3200228618f..f592aed05a8 100644 --- a/sql/sql_basic_types.h +++ b/sql/sql_basic_types.h @@ -150,9 +150,11 @@ public: explicit time_round_mode_t(ulonglong mode) :m_mode((value_t) mode) { +#ifdef MYSQL_SERVER DBUG_ASSERT(mode == FRAC_NONE || mode == FRAC_TRUNCATE || mode == FRAC_ROUND); +#endif } // Conversion operators explicit operator ulonglong() const