summaryrefslogtreecommitdiff
path: root/sql/item_func.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_func.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_func.h')
-rw-r--r--sql/item_func.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 2525f6f1f0b..ecdbd4c30ed 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -2523,8 +2523,9 @@ public:
String *val_str(String *str);
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 *get_copy(THD *thd)