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

sql: expected 0 arguments, got 2 #4

Closed
tiansin opened this issue Jul 8, 2020 · 1 comment
Closed

sql: expected 0 arguments, got 2 #4

tiansin opened this issue Jul 8, 2020 · 1 comment

Comments

@tiansin
Copy link

tiansin commented Jul 8, 2020

err := s.tx.Table(new(models.SysRole).TableName()).Preload("Menus").Where("id", "=", roleId).Find(&role).Error

这里的Where参数写错了.

@piupuer
Copy link
Owner

piupuer commented Jul 8, 2020

多谢提醒,我等下改一改,这是写redis和mysql遗留问题

@piupuer piupuer closed this as completed Jul 10, 2020
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