diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-05-06 14:52:18 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-05-06 14:52:18 +0400 |
commit | 9a360e97a29d928f232ff724b450bd9e04cbe6e5 (patch) | |
tree | db5f047d2e54e161ab226d7c7bafb239b20633bf /sql/item_windowfunc.h | |
parent | 380ec90905255e59a00773148e1763957a8deea6 (diff) | |
download | mariadb-git-9a360e97a29d928f232ff724b450bd9e04cbe6e5.tar.gz |
Cleanup: changing set_handler_by_field_type(field_type()) to set_handler(type_handler()).
This gives better performance, as excludes handler-by-type lookup.
Diffstat (limited to 'sql/item_windowfunc.h')
-rw-r--r-- | sql/item_windowfunc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h index 1690d147b26..59b98c93a23 100644 --- a/sql/item_windowfunc.h +++ b/sql/item_windowfunc.h @@ -285,13 +285,13 @@ class Item_sum_hybrid_simple : public Item_sum, public: Item_sum_hybrid_simple(THD *thd, Item *arg): Item_sum(thd, arg), - Type_handler_hybrid_field_type(MYSQL_TYPE_LONGLONG), + Type_handler_hybrid_field_type(&type_handler_longlong), value(NULL) { collation.set(&my_charset_bin); } Item_sum_hybrid_simple(THD *thd, Item *arg1, Item *arg2): Item_sum(thd, arg1, arg2), - Type_handler_hybrid_field_type(MYSQL_TYPE_LONGLONG), + Type_handler_hybrid_field_type(&type_handler_longlong), value(NULL) { collation.set(&my_charset_bin); } |