Skip to content
Snippets Groups Projects
Commit bf0150d2 authored by Stephen R. van den Berg's avatar Stephen R. van den Berg
Browse files

pgsql: Attempt to avoid double traps.

parent 9b96c1d9
No related branches found
No related tags found
No related merge requests found
......@@ -724,6 +724,8 @@ outer:
int fd = -1;
if (socket)
catch(fd = socket->query_fd());
if (!this) // Not in destructed objects
return "";
res = predef::sprintf("conxion fd: %d input queue: %d/%d "
"queued portals: %d output queue: %d/%d\n"
"started: %d\n",
......@@ -831,6 +833,8 @@ class sql_result {
int fd = -1;
if (c && c->socket)
catch(fd = c->socket->query_fd());
if (!this) // Not in destructed objects
return "";
res = sprintf(
"sql_result state: %d numrows: %d eof: %d inflight: %d\n"
"fd: %O portalname: %O coltypes: %d"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment