zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.41k stars 3.97k forks source link

goctl generation mysql, in different systems windows and linux ,unsigned int type is different. #2491

Closed anyone0034 closed 8 months ago

anyone0034 commented 2 years ago

1. wsl Ubuntu 20.04

Result:

Id           uint64  `db:"id"`

2. Windows

Result:

Id         int64 `db:"id"`

The two commands are the same,but mysql unsigned int type is different

Issues-translate-bot commented 2 years ago

Bot detected the issue body's language is not English, translate it automatically. πŸ‘―πŸ‘­πŸ»πŸ§‘β€πŸ€β€πŸ§‘πŸ‘«πŸ§‘πŸΏβ€πŸ€β€πŸ§‘πŸ»πŸ‘©πŸΎβ€πŸ€β€πŸ‘¨πŸΏπŸ‘¬πŸΏ


1. wsl Ubuntu 20.04

  • OS: Linux
  • go-zero version 1.4.0
  • goctl version 1.4.0 linux/amd64
  • qqqq# uname -a Linux qqqq 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux goctl model mysql datasource -url="kvm:kvm@tcp(vm1:3307)/kvm" -table="*" -dir="../models" -style="goZero" -c qqqq# go version go version go1.19.1 linux/amd64
  • run goctl model mysql datasource -url="kvm:kvm@tcp(vm1:3307)/kvm" -table="*" -dir="../models" -style="goZero" -c

Result:

Id           uint64  `db:"id"`

2. Windows

Result:

Id         int64 `db:"id"`  
kesonan commented 2 years ago

The latest version show the same version to the last version of goctl which are 1.4.0, if you md5 to the binary file, you will get different sum values.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 8 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.