on dev help sign in
doctest
commit0d0614a1314934bd65871862b4050de190815f22 authorEitan Chatav <eitan@Eitans-MacBook-Pro.local> dateWed 27 Feb 2019, 11:38 (8 years ago) parent33ff5bf
1 file changed+2
squeal-postgresql/src/Squeal/PostgreSQL/Expression.hs+2
squeal-postgresql/src/Squeal/PostgreSQL/Expression.hs+2
@@ -484,6 +484,8 @@ array
484484array xs = UnsafeExpression $
485485 "ARRAY[" <> commaSeparated (renderSQL <$> xs) <> "]"
486486
487+-- | >>> printSQL $ cardinality (array [null_, false, true])
488+-- cardinality(ARRAY[NULL, FALSE, TRUE])
487489cardinality
488490 :: Expression outer grp commons schemas params from (nullity ('PGvararray ty))
489491 -> Expression outer grp commons schemas params from (nullity 'PGint8)