From d25b10fede8926f63203dfd2040ec60549d10936 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Wed, 9 Feb 2022 17:59:38 +0400 Subject: MDEV-27712 Reduce the size of Lex_length_and_dec_st from 16 to 8 User visible change: Removing the length specified by user from error messages: ER_TOO_BIG_SCALE and ER_TOO_BIG_PRECISION as discussed with Sergei. --- sql/item_timefunc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sql/item_timefunc.cc') diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index 0a24578ce85..148488680f0 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -1551,7 +1551,7 @@ bool Item_func_curtime::fix_fields(THD *thd, Item **items) { if (decimals > TIME_SECOND_PART_DIGITS) { - my_error(ER_TOO_BIG_PRECISION, MYF(0), static_cast(decimals), + my_error(ER_TOO_BIG_PRECISION, MYF(0), func_name(), TIME_SECOND_PART_DIGITS); return 1; } @@ -1627,7 +1627,7 @@ bool Item_func_now::fix_fields(THD *thd, Item **items) { if (decimals > TIME_SECOND_PART_DIGITS) { - my_error(ER_TOO_BIG_PRECISION, MYF(0), static_cast(decimals), + my_error(ER_TOO_BIG_PRECISION, MYF(0), func_name(), TIME_SECOND_PART_DIGITS); return 1; } -- cgit v1.2.1