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

报错了。type (int unsigned) not match in any way.maybe need to add on (https://github.com/xxjwxc/gormt/blob/master/data/view/cnf/def.go) #28

Closed
Ccheers opened this issue Feb 12, 2020 · 3 comments

Comments

@Ccheers
Copy link

Ccheers commented Feb 12, 2020

panic: type (int unsigned) not match in any way.maybe need to add on (https://github.com/xxjwxc/gormt/blob/master/data/view/cnf/def.go)

goroutine 1 [running]:
github.com/xxjwxc/gormt/data/view/model.getTypeName(0xc000392c14, 0xc, 0x1607886, 0x1)
/Users/eric/Downloads/gormt-3.0.3/data/view/model/common.go:51 +0x218
github.com/xxjwxc/gormt/data/view/model.(_Model).genTableElement(0xc000375c10, 0xc00024f500, 0x7, 0x8, 0x1, 0xc0004310e0, 0x0)
/Users/eric/Downloads/gormt-3.0.3/data/view/model/model.go:81 +0xd14
github.com/xxjwxc/gormt/data/view/model.(
_Model).GetPackage(0xc000375c10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/eric/Downloads/gormt-3.0.3/data/view/model/model.go:53 +0x23d
github.com/xxjwxc/gormt/data/view/model.(*_Model).generate(0xc000375c10, 0xc00017d030, 0x9)
/Users/eric/Downloads/gormt-3.0.3/data/view/model/model.go:65 +0x3e
github.com/xxjwxc/gormt/data/view/model.Generate(0xc00017d0a0, 0x7, 0xc00017cd9a, 0x5, 0xc00037e900, 0xb, 0x10, 0x10, 0xc, 0xb, ...)
/Users/eric/Downloads/gormt-3.0.3/data/view/model/model.go:31 +0xc3
github.com/xxjwxc/gormt/data/view/gtools.showCmd()
/Users/eric/Downloads/gormt-3.0.3/data/view/gtools/gtools.go:36 +0xb7
github.com/xxjwxc/gormt/data/view/gtools.Execute()
/Users/eric/Downloads/gormt-3.0.3/data/view/gtools/gtools.go:21 +0x38
github.com/xxjwxc/gormt/data/cmd.glob..func1(0x1b39260, 0xc00030b540, 0x0, 0x1)
/Users/eric/Downloads/gormt-3.0.3/data/cmd/cmd.go:30 +0x20
github.com/spf13/cobra.(*Command).execute(0x1b39260, 0xc0000c4030, 0x1, 0x1, 0x1b39260, 0xc0000c4030)
/Users/eric/GoProject/GoResource/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830 +0x2aa
github.com/spf13/cobra.(*Command).ExecuteC(0x1b39260, 0x0, 0x0, 0x0)
/Users/eric/GoProject/GoResource/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914 +0x2fb
github.com/spf13/cobra.(*Command).Execute(...)
/Users/eric/GoProject/GoResource/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/xxjwxc/gormt/data/cmd.Execute()
/Users/eric/Downloads/gormt-3.0.3/data/cmd/cmd.go:38 +0x2d
main.main()
/Users/eric/Downloads/gormt-3.0.3/main.go:6 +0x20

@xxjwxc
Copy link
Owner

xxjwxc commented Feb 12, 2020

你看错误说明:需要在
https://github.com/xxjwxc/gormt/blob/master/data/view/cnf/def.go
中添加:int unsigned 类型的支持

@Ccheers
Copy link
Author

Ccheers commented Feb 12, 2020

好的,谢谢

@Ccheers Ccheers closed this as completed Feb 12, 2020
@xxjwxc
Copy link
Owner

xxjwxc commented Feb 12, 2020

ok,欢迎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