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

Panic:interface conversion #5346

Open
zuorihuan opened this issue May 18, 2022 · 2 comments
Open

Panic:interface conversion #5346

zuorihuan opened this issue May 18, 2022 · 2 comments
Assignees
Labels

Comments

@zuorihuan
Copy link

zuorihuan commented May 18, 2022

panic: interface conversion: interface {} is int64, not []uint8

Why often report panic like this when I USING GORM?

db.Find(&records) // test ok

db.where("xn = ?", args).Find(&records) //test error (panic interface conversion)

db.where("xn = ?", "2022-2023").Find(&records) //no records when xn = '2022-2023' in table it tests ok

@zuorihuan zuorihuan added the type:question general questions label May 18, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days

@saeidee
Copy link
Member

saeidee commented Jul 15, 2023

Please write a proper description and steps to reproduce the issue with a PR here https://github.com/go-gorm/playground

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

No branches or pull requests

3 participants