1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +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 dcbaf4b373
commit a788cbfdc4
2 changed files with 2 additions and 2 deletions

View File

@ -953,7 +953,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

@ -887,7 +887,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