• Evgeny Potemkin's avatar
    Bug#59330: Incorrect result when comparing an aggregate function with · d6922c7e
    Evgeny Potemkin authored
    TIMESTAMP.
    
    Item_cache::get_cache wasn't treating TIMESTAMP as a DATETIME value thus
    returning string cache for items with TIMESTAMP type. This led to incorrect
    TIMESTAMP -> INT conversion and to a wrong query result.
    
    Fixed by using Item::is_datetime function to check for DATETIME type group.
    d6922c7e
item.cc 226 KB