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