Moar unsignedness love
Kinda hacked in again… All this would deserve tests, kinda pushing as I go :( Sorry
btw, I think this may have not been the best approach… shouldn't a literal wrap a i128? And then let the "downstream" consumer see how it deals with it? wdyt?
Yeah, I think that's perhaps the best plan. Literal is never stored in large volumes, so wasting some memory on it is fine (unlike with DataType).
This kind of slightly yucky conversion code is likely best placed where we actually need to convert to sized types (e.g., in noria-mysql).
Another approach would be to represent types properly as enum variants that are part of Literal. This requires a larger change, but will result in a more standard parser datastructure; on the flip side, it will much complicate some code paths in Noria that handle literals.
That's a proposal for Literal::Integer(i128). Let me know if you'd rather have the other approach instead. If so tho, what granularity would you expect?