pgsql icon indicating copy to clipboard operation
pgsql copied to clipboard

function_clause set_succeeded_or_within_failed_transaction

Open nadsat opened this issue 8 years ago • 1 comments

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?

nadsat avatar Sep 16 '17 22:09 nadsat

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.

waisbrot avatar Sep 17 '17 22:09 waisbrot