diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-10-11 14:12:38 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-10-31 11:19:39 +0100 |
commit | 00c3a28820c67c37ebbca72691f4897b57f2eed5 (patch) | |
tree | ee52ffeeaa4d632e65b911dba625c694ed6f2ebf /sql/item_func.cc | |
parent | 779978217c76d4b43bb99dd49b6de6464563d93a (diff) | |
download | mariadb-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.cc')
-rw-r--r-- | sql/item_func.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc index 2e4a813990f..573372c7c46 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -5423,8 +5423,10 @@ bool Item_func_get_user_var::fix_length_and_dec() collation.set(&my_charset_numeric, DERIVATION_NUMERIC); fix_char_length(MAX_BIGINT_WIDTH); decimals=0; - set_handler(unsigned_flag ? &type_handler_ulonglong : - &type_handler_slonglong); + if (unsigned_flag) + set_handler(&type_handler_ulonglong); + else + set_handler(&type_handler_slonglong); break; case STRING_RESULT: collation.set(m_var_entry->charset(), DERIVATION_IMPLICIT); |