Closed shane-circuithub closed 9 months ago
Thanks! Can you also add tests that fail before this PR and pass after it?
I've added failing tests before the commits that subsequently fix them.
I should probably add with
to the property tests. They ought to have caught this.
Thanks @duairc!
Released as https://hackage.haskell.org/package/opaleye-0.10.1.1, and deprecated 0.10.1.0.
This PR contains two fixes pertaining to
WITH
queries. The first wraps an otherwise pointlessSELECT * FROM
aroundWITH
queries to workaround PostgreSQL's arbitrary rejection ofWITH foo AS (_) WITH bar AS (_) _
as invalid syntax. The second fixes a more serious issue wherebywithExplicit
is missing aRebind
and can generate a "valid" query that silently produces incorrect results.