Skip to content

parse unsigned bigint may cause error  #389

Closed
@HDT3213

Description

@HDT3213

I noticed function dumpParseHandler.Data() in siddontang/go-mysql/canal/dump.go(line: 56), using strconv.ParseInt(v, 10, 64) to parse TYPE_NUMBER which includes mysql unsigned bigint.

However, the max value of bigint unsigned is 2^64 - 1 which is greater than the max value of int64(2^63 - 1). A column in mysql which is greater than 2^63 - 1 and less than 2^64 - 1 will cause a parse error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions