Skip to content

I'm not observing intermediate SQL errors when using forPrepared_/traversePrepared_. Is it possible to? #334

Answered by lehmacdj
lehmacdj asked this question in Q&A
Discussion options

You must be logged in to vote

I think the problem is that the deallocate which is bracket-ed around execPrepared is also failing, because the enclosing transaction is aborted and this masks the original error. https://hackage.haskell.org/package/squeal-postgresql-0.8.1.1/docs/src/Squeal.PostgreSQL.Session.html#line-158

I think this might actually be fixed in 0.9.0, because you're no longer using bracket to ensure deallocate is called.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@echatav
Comment options

Answer selected by lehmacdj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants