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

function_clause set_succeeded_or_within_failed_transaction #40

Open
nadsat opened this issue Sep 16, 2017 · 1 comment
Open

function_clause set_succeeded_or_within_failed_transaction #40

nadsat opened this issue Sep 16, 2017 · 1 comment

Comments

@nadsat
Copy link

nadsat commented Sep 16, 2017

Hi

Running a query using simple_query I got this Error:

{function_clause,[{pgsql_connection,set_succeeded_or_within_failed_transaction,[{error,closed}],[{file,"xxx/_build/default/lib/pgsql/src/pgsql_connection.erl"},{line,778}]},.....

Would adding {error, closed} clause solve the problem?

@waisbrot
Copy link

Well you'd still have the problem that your connection closed down unexpectedly :)

But yes, I think adding a clause to handle that case by throwing would make it easier for client code to handle the situation.

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

2 participants