Closed puls200 closed 1 month ago
What's the trace back? Does MySQL allow inserting a signed int into an unsigned column? Are you expecting it to convert implicitly?
Hi Zach, thank you for your reply. When looking up the trace I found the error elsewhere.. the incoming value from the API was already wrong, I got on the wrong track. Sorry about that. Closing this now. brgs, Daniel
I have a weird case I cannot make sense of: I am trying to insert an unsigned int value into a MySQL table into a column of type unsigned int.
commands.execute(query, schemaModel)
where schemaModel is a marshmallow Schema and the field in question is defined like this:
flags = fields.Integer(required=False, allow_none=True)
Everything works fine unless the sign bit is set. Setting the flags value to 4.294.967.295 will result in an out of range error. What is happening, am I doing something wrong?