Merge pull request #27 from jcristovao/upstream

IN works for subList_select assumes ordering.
This commit is contained in:
Felipe Lessa 2013-09-13 14:57:36 -07:00
commit 27aafd8bc2

View File

@ -643,7 +643,8 @@ main = do
ret <- select $
from $ \p -> do
let subquery =
from $ \bp ->
from $ \bp -> do
orderBy [ asc (bp ^. BlogPostAuthorId) ]
return (bp ^. BlogPostAuthorId)
where_ (p ^. PersonId `in_` subList_select subquery)
return p