vitess-sqlparser icon indicating copy to clipboard operation
vitess-sqlparser copied to clipboard

Compiling for 32bit architecture

Open mozey opened this issue 3 years ago • 1 comments

When I try to compile for GOARCH=386, I get the compile errors below. For now I'll just use amd64 instead. Is it possible to also support 386?

# github.com/blastrain/vitess-sqlparser/tidbparser/dependency/mysql
vendor/github.com/blastrain/vitess-sqlparser/tidbparser/dependency/mysql/const.go:503:2: constant 2147483648 overflows SQLMode
vendor/github.com/blastrain/vitess-sqlparser/tidbparser/dependency/mysql/const.go:504:2: constant 4294967296 overflows SQLMode
vendor/github.com/blastrain/vitess-sqlparser/tidbparser/dependency/mysql/util.go:44:19: constant 4294967295 overflows int
vendor/github.com/blastrain/vitess-sqlparser/tidbparser/dependency/mysql/util.go:45:19: constant 4294967295 overflows int

mozey avatar Mar 23 '21 10:03 mozey

Fixing this probably requires changing int to int64 in a couple of places?

mozey avatar Mar 23 '21 11:03 mozey