Skip to content

Commit

Permalink
Fix issue with isNullOr function
Browse files Browse the repository at this point in the history
  • Loading branch information
arjendevos authored Feb 13, 2023
1 parent c223cca commit 4aa4944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template_files/generated_filter.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const in = " IN ?"
const notIn = " NOT IN ?"

func isNullOr(column string, v string) qm.QueryMod {
return qm.Where("("+column+" IS NULL OR "+column+" != "+v+")")
return qm.Where("("+column+" IS NULL OR "+column+" = "+v+")")
}

func isNotNullOr(column string, v string) qm.QueryMod {
Expand Down

0 comments on commit 4aa4944

Please sign in to comment.