Fix MySQL int32 overflow

An integer overflow occurs about counter type metrics such as `Com_select`.