borked :: Query s (Col s Int)
borked = aggregate $ do
_ <- distinct $ do
t <- select people
pure (t ! #msg)
x <- distinct $ do
t <- select people
pure (t ! #name)
pure (count x)
Cause Selda + the psql backend to fail. For a complete program see #165 and a throw-away psql such as docker run -p 5432:5432 --rm -e POSTGRES_PASSWORD=password -d postgres.
This query now succeeds along with make test and the make pgtest target. That said, I don't claim to have shoved the whole selda design into my head so viewing the PR with some suspicion is warranted.
Fix #165 by removing isolate from
distinct
calls.Recall that queries in the form:
Cause Selda + the psql backend to fail. For a complete program see #165 and a throw-away psql such as
docker run -p 5432:5432 --rm -e POSTGRES_PASSWORD=password -d postgres
.This query now succeeds along with
make test
and themake pgtest
target. That said, I don't claim to have shoved the whole selda design into my head so viewing the PR with some suspicion is warranted.