Skip to content

Commit 7a858f7

Browse files
committed
Oops, PQExpBufferDataBroken doesn't exist before 9.2.
My previous back-patching went wrong.
1 parent 2b189c7 commit 7a858f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/interfaces/libpq/fe-protocol2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ pqGetErrorNotice2(PGconn *conn, bool isError)
888888
pqClearAsyncResult(conn);
889889
conn->result = res;
890890
resetPQExpBuffer(&conn->errorMessage);
891-
if (res && !PQExpBufferDataBroken(workBuf) && res->errMsg)
891+
if (res && !PQExpBufferBroken(&workBuf) && res->errMsg)
892892
appendPQExpBufferStr(&conn->errorMessage, res->errMsg);
893893
else
894894
printfPQExpBuffer(&conn->errorMessage,

src/interfaces/libpq/fe-protocol3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ pqGetErrorNotice3(PGconn *conn, bool isError)
877877
res->errMsg = pqResultStrdup(res, workBuf.data);
878878
pqClearAsyncResult(conn);
879879
conn->result = res;
880-
if (PQExpBufferDataBroken(workBuf))
880+
if (PQExpBufferBroken(&workBuf))
881881
printfPQExpBuffer(&conn->errorMessage,
882882
libpq_gettext("out of memory"));
883883
else

0 commit comments

Comments
 (0)