Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimental: exception when using coalesceDefault/unsafeSqlFunctionParens on aliased value #201

Closed
timds opened this issue Aug 20, 2020 · 2 comments

Comments

@timds
Copy link

timds commented Aug 20, 2020

Hi, using the Experimental module, I get this error when using coalesceDefault on the result of a subselect:

src/Database/Esqueleto/Internal/Internal.hs:2230:28-68: Non-exhaustive patterns in lambda

I don't have time to make a reproduction right now sorry, but it looks like the same problem as that fixed in this pull #189.

I'm using 3.3.3.2, so the error is occurring at the lambda in unsafeSqlFunctionParens

@timds timds changed the title Experimental: exception when using coalesceDefault/unsafeSqlFunctionParens Experimental: exception when using coalesceDefault/unsafeSqlFunctionParens on aliased value Aug 20, 2020
@bitemyapp
Copy link
Owner

Shouldn't be occurring if that's your version, it got released prior to 3.3.3.2: #189 (comment)

cc @belevy @parsonsmatt Any ideas?

@belevy
Copy link
Collaborator

belevy commented Aug 20, 2020

Looks like there are a couple more lambdas that assume ERaw they will also fail on compound values. The fix should be fairly easy just annoying that there are two nearly identical functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants