• Alexander Barkov's avatar
    MDEV-23537 Comparison with temporal columns is slow in MariaDB · 2e5d86f4
    Alexander Barkov authored
    Implementing methods:
    - Field::val_time_packed()
    - Field::val_datetime_packed()
    - Item_field::val_datetime_packed(THD *thd);
    - Item_field::val_time_packed(THD *thd);
    to give a faster access to temporal packed longlong representation of a Field,
    which is used in temporal Arg_comparator's to DATE, TIME, DATETIME data types.
    
    The same idea is used in MySQL-5.6+.
    
    This improves performance.
    2e5d86f4
item.cc 289 KB