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

Sparte Scan leads to panic #135

Open
muzengin opened this issue Jul 27, 2022 · 0 comments
Open

Sparte Scan leads to panic #135

muzengin opened this issue Jul 27, 2022 · 0 comments
Assignees

Comments

@muzengin
Copy link

if value == nil || value.(*string) == nil {

If gorm read data from database and map it to domain model, the scan function is called. This leads to follow error:

Panic value: interface conversion: interface {} is string, not *string

could u also handle string before try to handle pointer string

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