Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySql Unsigned Int treated as a normal Int #65

Open
ildac opened this issue Aug 31, 2016 · 0 comments
Open

MySql Unsigned Int treated as a normal Int #65

ildac opened this issue Aug 31, 2016 · 0 comments

Comments

@ildac
Copy link

ildac commented Aug 31, 2016

I've a MySql table with a primary key of type Int (unsigned), when the id is bigger than the max Int value the id becomes a negative value, as expected.

I found what I think could be the root of the problem, the query on the information schema done by the MySQLMetadataManager, is using the DATA_TYPE column value, and this value is always int even for the unsigned kind.

I think an idea for a possible solution is to look also at the COLUMN_TYPE that is where the unsigned information is stored and cast this values to long?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant