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:
@ -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,
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user