IN works for subList_select assumes ordering.

Made ordering explicit.
This commit is contained in:
João Cristóvão 2013-09-11 10:29:40 +01:00
parent 91e480afc6
commit e045bedd8f

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