The generated SQL code needs to wrap the sub-query in an extra pair of
parentheses.
I.e. the following is invalid SQL:
COALESCE( SELECT ... , ... )
This is the correct syntax:
COALESCE( (SELECT ...) , ... )
|
||
|---|---|---|
| docs | ||
| src/Database | ||
| test | ||
| .gitignore | ||
| esqueleto.cabal | ||
| LICENSE | ||
| README | ||
| Setup.hs | ||