on dev help sign in
Fix example code for subAny
commit13416b801fc6258516a87d3cb100c7b043249978 authorRaveline <eraveline@gmail.com> dateMon 29 Apr 2019, 10:52 (7 years ago) parentb2955a5
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