mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Replace remaining uses of pq_sendint with pq_sendint{8,16,32}.
pq_sendint() remains, so extension code doesn't unnecessarily break. Author: Andres Freund Discussion: https://postgr.es/m/20170914063418.sckdzgjfrsbekae4@alap3.anarazel.de
This commit is contained in:
@ -143,7 +143,7 @@ SendFunctionResult(Datum retval, bool isnull, Oid rettype, int16 format)
|
||||
if (isnull)
|
||||
{
|
||||
if (newstyle)
|
||||
pq_sendint(&buf, -1, 4);
|
||||
pq_sendint32(&buf, -1);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -169,7 +169,7 @@ SendFunctionResult(Datum retval, bool isnull, Oid rettype, int16 format)
|
||||
|
||||
getTypeBinaryOutputInfo(rettype, &typsend, &typisvarlena);
|
||||
outputbytes = OidSendFunctionCall(typsend, retval);
|
||||
pq_sendint(&buf, VARSIZE(outputbytes) - VARHDRSZ, 4);
|
||||
pq_sendint32(&buf, VARSIZE(outputbytes) - VARHDRSZ);
|
||||
pq_sendbytes(&buf, VARDATA(outputbytes),
|
||||
VARSIZE(outputbytes) - VARHDRSZ);
|
||||
pfree(outputbytes);
|
||||
|
Reference in New Issue
Block a user