You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- If there's an embedding on projects, then change the filter to use the internal aggregate name (`clients_projects_1`) so the filter can succeed later.
853
853
--
@@ -869,7 +869,7 @@ addNullEmbedFilters (Node rp@ReadPlan{where_=curLogic} forest) = do
-- IS cannot be prepared. `PREPARE boolplan AS SELECT * FROM projects where id IS $1` will give a syntax error.
382
382
-- The above can be fixed by using `PREPARE boolplan AS SELECT * FROM projects where id IS NOT DISTINCT FROM $1;`
383
-
-- However that would not accept the TRUE/FALSE/NULL/UNKNOWN keywords. See: https://stackoverflow.com/questions/6133525/proper-way-to-set-preparedstatement-parameter-to-null-under-postgres.
383
+
-- However that would not accept the TRUE/FALSE/NULL/"NOT NULL"/UNKNOWN keywords. See: https://stackoverflow.com/questions/6133525/proper-way-to-set-preparedstatement-parameter-to-null-under-postgres.
384
384
-- This is why `IS` operands are whitelisted at the Parsers.hs level
385
-
Is triVal ->" IS "<>case triVal of
386
-
TriTrue->"TRUE"
387
-
TriFalse->"FALSE"
388
-
TriNull->"NULL"
389
-
TriUnknown->"UNKNOWN"
385
+
Is isVal ->" IS "<>
386
+
case isVal of
387
+
IsNull->"NULL"
388
+
IsNotNull->"NOT NULL"
389
+
IsTriTrue->"TRUE"
390
+
IsTriFalse->"FALSE"
391
+
IsTriUnknown->"UNKNOWN"
390
392
391
393
IsDistinctFrom val ->" IS DISTINCT FROM "<> unknownLiteral val
0 commit comments