on dev help sign in
Merge pull request #130 from Raveline/fix-subAny-example

Fix example code for subAny

commit218563adba33ac02a388a9a4fff0ae0c8ae00e15 authorEitan Chatav <eitan.chatav@gmail.com> dateMon 29 Apr 2019, 14:34 (7 years ago) parentb2955a513416b8
1 file changed+2−2
squeal-postgresql/src/Squeal/PostgreSQL/Expression/Subquery.hs+2−2
squeal-postgresql/src/Squeal/PostgreSQL/Expression/Subquery.hs+2−2
@@ -80,8 +80,8 @@ using the given `Operator`, which must yield a Boolean result. The result of `su
8080if any `true` result is obtained. The result is `false` if no true result is found
8181(including the case where the subquery returns no rows).
8282
83−>>> printSQL $ subAll "foo" like (values_ ("foobar" `as` #foo))
84−(E'foo' LIKE ALL (SELECT * FROM (VALUES (E'foobar')) AS t ("foo")))
83+>>> printSQL $ subAny "foo" like (values_ ("foobar" `as` #foo))
84+(E'foo' LIKE ANY (SELECT * FROM (VALUES (E'foobar')) AS t ("foo")))
8585-}
8686subAny
8787 :: Expression outer commons grp schemas params from ty1 -- ^ expression