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

请问字段内容为空时怎么处理? #108

Closed
brucezhao opened this issue Jan 15, 2020 · 1 comment
Closed

请问字段内容为空时怎么处理? #108

brucezhao opened this issue Jan 15, 2020 · 1 comment

Comments

@brucezhao
Copy link

Number string gorose:"tirenum" json:"tirenum"

定义结构时,其中一个字段如上,但是当这个字段的值为null时,就会报错:sql: Scan error on column index 3, name "tirenum": unsupported Scan, storing driver.Value type into type *string

这个要怎么处理?
谢谢!

@brucezhao
Copy link
Author

Sorry,没有认真看文档。

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