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

SQL To struct,数据库无符号的数据类型转成GO的类型有误 #16

Closed
mck753 opened this issue Aug 6, 2024 · 3 comments
Closed

Comments

@mck753
Copy link

mck753 commented Aug 6, 2024

现有DDL
image,转化成 GO 的类型的时候,会被映射成 int64 而不是 uint64 。
image
期望得到 uint64

@johnmai-dev
Copy link
Owner

好的 晚点我修复一下

@mck753
Copy link
Author

mck753 commented Aug 6, 2024

好的 晚点我修复一下

image
大概看了下源码,这里似乎不对,当使用 int32 的最大值写入到 数据库的 tinyint 时,MySQL应该会报 Out of range value 的错误

@johnmai-dev
Copy link
Owner

好的 晚点我修复一下

image 大概看了下源码,这里似乎不对,当使用 int32 的最大值写入到 数据库的 tinyint 时,MySQL应该会报 Out of range value 的错误

感谢提醒,如果方便的话,欢迎你提PR 大家一起共建 哈哈哈

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

2 participants