• Davi Arnaut's avatar
    Bug#37075: offset of limit clause might be truncated on 32-bits server w/o big tables · 4ab10baa
    Davi Arnaut authored
    The problem is that the offset argument of the limit clause
    might be truncated on a 32-bits server built without big
    tables support. The truncation was happening because the
    original 64-bits long argument was being cast to a 32-bits
    (ha_rows) offset counter.
    
    The solution is to check if the conversing resulted in value
    truncation and if so, the offset is set to the maximum possible
    value that can fit on the type.
    4ab10baa
limit.result 2.47 KB