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:
@ -410,7 +410,7 @@ tsvectorsend(PG_FUNCTION_ARGS)
|
||||
|
||||
pq_begintypsend(&buf);
|
||||
|
||||
pq_sendint(&buf, vec->size, sizeof(int32));
|
||||
pq_sendint32(&buf, vec->size);
|
||||
for (i = 0; i < vec->size; i++)
|
||||
{
|
||||
uint16 npos;
|
||||
@ -423,14 +423,14 @@ tsvectorsend(PG_FUNCTION_ARGS)
|
||||
pq_sendbyte(&buf, '\0');
|
||||
|
||||
npos = POSDATALEN(vec, weptr);
|
||||
pq_sendint(&buf, npos, sizeof(uint16));
|
||||
pq_sendint16(&buf, npos);
|
||||
|
||||
if (npos > 0)
|
||||
{
|
||||
WordEntryPos *wepptr = POSDATAPTR(vec, weptr);
|
||||
|
||||
for (j = 0; j < npos; j++)
|
||||
pq_sendint(&buf, wepptr[j], sizeof(WordEntryPos));
|
||||
pq_sendint16(&buf, wepptr[j]);
|
||||
}
|
||||
weptr++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user