1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-17 06:41:09 +03:00

Oops, PQExpBufferDataBroken doesn't exist before 9.2.

My previous back-patching went wrong.
This commit is contained in:
Heikki Linnakangas
2015-07-07 18:54:08 +03:00
parent 2b189c7ec1
commit 7a858f7bf4
2 changed files with 2 additions and 2 deletions

View File

@ -888,7 +888,7 @@ pqGetErrorNotice2(PGconn *conn, bool isError)
pqClearAsyncResult(conn);
conn->result = res;
resetPQExpBuffer(&conn->errorMessage);
if (res && !PQExpBufferDataBroken(workBuf) && res->errMsg)
if (res && !PQExpBufferBroken(&workBuf) && res->errMsg)
appendPQExpBufferStr(&conn->errorMessage, res->errMsg);
else
printfPQExpBuffer(&conn->errorMessage,

View File

@ -877,7 +877,7 @@ pqGetErrorNotice3(PGconn *conn, bool isError)
res->errMsg = pqResultStrdup(res, workBuf.data);
pqClearAsyncResult(conn);
conn->result = res;
if (PQExpBufferDataBroken(workBuf))
if (PQExpBufferBroken(&workBuf))
printfPQExpBuffer(&conn->errorMessage,
libpq_gettext("out of memory"));
else