There is a code in item_cmpfunc.cc:
Under terms of this task we'll decompose this switch into a new virtual method in Type_handler:
Pieces of the code from every XXX_RESULT in the switch will go to the corresponding Type_handler.
E.g. the code from STRING_RESULT will go to Type_handler_string_result::set_comparator_func.