mperham/em_postgresql — Issue #3: EM::P::PostgresConnection unbind error
Author: telent
Created: 2012-03-09 16:43:41+00:00
State: open

When something calls EM::P::PostgresConnection.unbind (I don't yet know what that something is: debugging is ongoing) it calls

if o = (@pending_query || @pending_conn)
o.succeed false, "lost connection"
end

However, the callback in #exec expects three arguments (status, result, errors), and attempts to return PGresult.new(result). This gives a slightly obscure error message when result is a String