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 null值, 自定义类型Scan未生效 #7386

Open
hhniao opened this issue Mar 9, 2025 · 2 comments
Open

mysql null值, 自定义类型Scan未生效 #7386

hhniao opened this issue Mar 9, 2025 · 2 comments
Assignees
Labels
type:with reproduction steps with reproduction steps

Comments

@hhniao
Copy link

hhniao commented Mar 9, 2025

GORM Playground Link

go-gorm/playground#794

Description

@github-actions github-actions bot added the type:with reproduction steps with reproduction steps label Mar 9, 2025
@a631807682
Copy link
Member

@hhniao
Copy link
Author

hhniao commented Mar 12, 2025

@a631807682 断点调试发现, 数据库null值, 不会执行Scan方法.
其他值均会进入Scan方法, 现在主要的问题是没有执行. 返回什么已经不重要了.

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

No branches or pull requests

3 participants