summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-10-11 14:12:38 +0200
committerSergei Golubchik <serg@mariadb.org>2019-10-31 11:19:39 +0100
commit00c3a28820c67c37ebbca72691f4897b57f2eed5 (patch)
treeee52ffeeaa4d632e65b911dba625c694ed6f2ebf /sql/item_sum.h
parent779978217c76d4b43bb99dd49b6de6464563d93a (diff)
downloadmariadb-git-00c3a28820c67c37ebbca72691f4897b57f2eed5.tar.gz
cleanup: data type plugins
simplify type naming (less boilerplate code). don't force a plugin to specify the name twice.
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r--sql/item_sum.h5
1 files changed, 3 insertions, 2 deletions
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);