why gorm can't using where 0 (zero) #7157
Unanswered
dickyjoelsaputra
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`
func (repo *ciswSaldoRepository) ListRequest(usersId []int, status []int) (res []entity.AbsenceLeave, err error) {
}
`
so this is my status :
`
cisw, err := c.CiswSaldoRepo.ListRequest(users, []int{0})
if err != nil {
return nil, &entity.GeneralError{
ErrorUser: err,
ErrorServer: err,
}
}
`
and i got 500 errors at Where("absence_leave.hrd_status IN (?)", status) , im trying to use Where("absence_leave.hrd_status = ?", 0)
still got the 500 erros , when i try NULL and change it to 0 via pgsql , its fine
`
`
Beta Was this translation helpful? Give feedback.
All reactions