Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upHandling unsigned integer types from MySQL #1181
Comments
killercup
added
the
mysql
label
Sep 21, 2017
This comment has been minimized.
This comment has been minimized.
|
IIRC I was just straight up incorrect in #912, and we just need a PR that updates the code to not conflict with the latest master |
sgrif
added this to the 1.2 milestone
Jan 17, 2018
This comment has been minimized.
|
Adding this to the milestone. The solution is literally just rebasing an old PR. The longer we wait, the harder that will be. |
sgrif
added
good first issue
mentoring available
labels
Jan 17, 2018
This comment has been minimized.
|
I'd like to take this one on as a first issue I attempted to rebase #782 with |
sgrif
closed this
in
#1618
Apr 6, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
davechallis commentedSep 21, 2017
I've got a lot of MySQL tables with unsigned integer types (e.g.
id INT(10) UNSIGNED).I'm struggling to run queries against these with Diesel when their values exceed the positive
i32max value.E.g. using:
results in a runtime error:
which is expected, as it overflows
i32, but is an acceptableu32value.Changing my struct to:
instead results in a compiler error:
Is this just unsupported by Diesel, or is there a different approach I should be taking for dealing with MySQL's unsigned integers?