IN works for subList_select assumes ordering.
Made ordering explicit.
This commit is contained in:
parent
91e480afc6
commit
e045bedd8f
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user