Skip to content

decimal 数据类型精度丢失 #313

Open
@x-ainger

Description

@x-ainger

mysqlbatch:
image
将 decimal 格式的数据,转换为 golang float64 类型,会导致精度丢失
此处可采用 "github.com/shopspring/decimal" decimal.Decimal{}

mysqlstream:
设置 go-mysql sync 参数:UseDecimal: true

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