3
0

Change state checks to use literal expressions

MSSQL doesn't like expressions in the lines of "column" IS @p1
which is how goqu generated the column.IsNull() part.
This commit is contained in:
Tomaž Jerman
2022-11-24 11:34:08 +01:00
committed by Jože Fortun
parent 878e5edddb
commit a026aeb790
4 changed files with 28 additions and 26 deletions
@@ -498,7 +498,7 @@ func (s *Store) Query{{ .expIdentPlural }}(
{{- end }}
{{- end }}
{{- range .nullConstraint }}
goqu.I({{ printf "%q" . }}).IsNull(),
stateNilComparison({{ printf "%q" . }}, filter.StateExcluded),
{{- end }}
).Limit(1)
)