From 4aa494474f603e68223493272b16a565475afcd5 Mon Sep 17 00:00:00 2001 From: Arjen <67794681+arjendevos@users.noreply.github.com> Date: Mon, 13 Feb 2023 10:30:27 +0100 Subject: [PATCH] Fix issue with isNullOr function --- template_files/generated_filter.gotpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template_files/generated_filter.gotpl b/template_files/generated_filter.gotpl index db72068..1ac6627 100644 --- a/template_files/generated_filter.gotpl +++ b/template_files/generated_filter.gotpl @@ -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 {