Skip to content

运行到 go 1.24.2 报错 #110

Open
@nick4

Description

@nick4

Describe the bug

github.com/zhufuyi/sqlparser/dependency/mysql

D:\AppData\Go\pkg\mod\github.com\zhufuyi\[email protected]\dependency\mysql\const.go:503:2: cannot use 1 << iota (untyped int constant 2147483648) as SQLMode value in constant declaration (overflows)
D:\AppData\Go\pkg\mod\github.com\zhufuyi\[email protected]\dependency\mysql\const.go:504:2: cannot use 1 << iota (untyped int constant 4294967296) as SQLMode value in constant declaration (overflows)
D:\AppData\Go\pkg\mod\github.com\zhufuyi\[email protected]\dependency\mysql\util.go:44:19: cannot use 4294967295 (untyped int constant) as int value in struct literal (overflows)
D:\AppData\Go\pkg\mod\github.com\zhufuyi\[email protected]\dependency\mysql\util.go:45:19: cannot use 4294967295 (untyped int constant) as int value in struct literal (overflows)

To Reproduce
Steps to reproduce the behavior, if applicable:

  1. The code is

  2. The error is

    
    

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environments (please complete the following information):

  • OS: [e.g. Linux]
  • sponge version [e.g. 1.1.1]

More description
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions