From da6a66936689267f72f2cb00a5a4208d23e7cf9f Mon Sep 17 00:00:00 2001 From: Felipe Lessa Date: Thu, 6 Sep 2012 10:40:39 -0300 Subject: [PATCH] Add warning about unsupported JOINs to from's docs. --- src/Database/Esqueleto/Internal/Language.hs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Database/Esqueleto/Internal/Language.hs b/src/Database/Esqueleto/Internal/Language.hs index ca9cec3..bf60e83 100644 --- a/src/Database/Esqueleto/Internal/Language.hs +++ b/src/Database/Esqueleto/Internal/Language.hs @@ -360,6 +360,12 @@ data Update typ -- (expr (Entity Follow))) -- (expr (Entity Person)) -- @ +-- +-- Note that some backends may not support all kinds of @JOIN@s. +-- For example, when using the SQL backend with SQLite, it will +-- not accept the last example above (which is associated to the +-- left, instead of being to the right) and will not accept +-- 'RightOuterJoin's or 'FullOuterJoin's. from :: From query expr backend a => (a -> query b) -> query b from = (from_ >>=)