Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
database/sql: not allowing values in range [2^64 -1 - 2^63] in sql library for uint64 #20238
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
Some DBs do not support unsigned integers. Rejecting uint64 >= 1<<63 prevents them become indistinguishable from int64s < 0. If you need to insert such int64 anyway, you have to explicitly convert in on input to int64 and convert it back to uint64 on output - and take care to never insert a signed integer into the same column.