pgsql
pgsql copied to clipboard
function_clause set_succeeded_or_within_failed_transaction
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?
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.