on dev help sign in
unsafeFunction
4376f58Eitan Chatav
squeal-postgresql/src/Squeal/PostgreSQL/Expression.hs+1−1
@@ -541,7 +541,7 @@ matchNull y f x = ifThenElse (isNull x) y
541NULLIF(FALSE, ($1 :: bool))
541NULLIF(FALSE, ($1 :: bool))
542-}
542-}
543nullIf :: FunctionHet '[ 'NotNull ty, 'NotNull ty] ('Null ty)
543nullIf :: FunctionHet '[ 'NotNull ty, 'NotNull ty] ('Null ty)
544−nullIf = functionHet "NULLIF"
544+nullIf = unsafeFunctionHet "NULLIF"
545
545
546-- | >>> printSQL $ array [null_, false, true]
546-- | >>> printSQL $ array [null_, false, true]
547-- ARRAY[NULL, FALSE, TRUE]
547-- ARRAY[NULL, FALSE, TRUE]