diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-08-15 13:16:00 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-08-15 21:53:24 +0400 |
commit | 6073049a3675363f7d7efe26f47525b528be9e2f (patch) | |
tree | d7151b02c0f1a291e1bad7b994b2dc3982eb783c /sql/item_timefunc.h | |
parent | ae4b9b7689c49b8b8bf61d1762f452e0f14cad22 (diff) | |
download | mariadb-git-6073049a3675363f7d7efe26f47525b528be9e2f.tar.gz |
MDEV-20353 Add separate type handlers for unsigned integer data types
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r-- | sql/item_timefunc.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h index de00c39acde..9896499e172 100644 --- a/sql/item_timefunc.h +++ b/sql/item_timefunc.h @@ -191,7 +191,7 @@ public: return get_date_from_int(thd, ltime, fuzzydate); } const char *func_name() const { return "month"; } - const Type_handler *type_handler() const { return &type_handler_long; } + const Type_handler *type_handler() const { return &type_handler_slong; } bool fix_length_and_dec() { decimals= 0; @@ -467,7 +467,7 @@ public: { return type_handler()->Item_get_date_with_warn(thd, this, ltime, fuzzydate); } - const Type_handler *type_handler() const { return &type_handler_long; } + const Type_handler *type_handler() const { return &type_handler_slong; } bool fix_length_and_dec() { decimals= 0; @@ -980,8 +980,8 @@ class Item_extract :public Item_int_func, uint32 threashold) { if (length >= threashold) - return &type_handler_longlong; - return &type_handler_long; + return &type_handler_slonglong; + return &type_handler_slong; } void set_date_length(uint32 length) { @@ -1012,7 +1012,7 @@ class Item_extract :public Item_int_func, const interval_type int_type; // keep it public Item_extract(THD *thd, interval_type type_arg, Item *a): Item_int_func(thd, a), - Type_handler_hybrid_field_type(&type_handler_longlong), + Type_handler_hybrid_field_type(&type_handler_slonglong), m_date_mode(date_mode_t(0)), int_type(type_arg) { } |