From 00c3a28820c67c37ebbca72691f4897b57f2eed5 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Fri, 11 Oct 2019 14:12:38 +0200 Subject: cleanup: data type plugins simplify type naming (less boilerplate code). don't force a plugin to specify the name twice. --- sql/item_sum.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sql/item_sum.h') diff --git a/sql/item_sum.h b/sql/item_sum.h index 5b17b97b414..c18454f1506 100644 --- a/sql/item_sum.h +++ b/sql/item_sum.h @@ -1649,8 +1649,9 @@ public: my_decimal *val_decimal(my_decimal *); const Type_handler *type_handler() const { - return unsigned_flag ? &type_handler_ulonglong : - &type_handler_slonglong; + if (unsigned_flag) + return &type_handler_ulonglong; + return &type_handler_slonglong; } bool fix_length_and_dec() { decimals=0; max_length=21; return FALSE; } Item *copy_or_same(THD* thd); -- cgit v1.2.1