Use pq_sendint instead of pq_sendint16 for Postgres < 11

This commit is contained in:
Andrew Kane
2021-04-22 19:18:14 -07:00
parent d14a6bca4b
commit 29b43a1e24

View File

@@ -272,8 +272,8 @@ vector_send(PG_FUNCTION_ARGS)
int i;
pq_begintypsend(&buf);
pq_sendint16(&buf, vec->dim);
pq_sendint16(&buf, vec->unused);
pq_sendint(&buf, vec->dim, sizeof(int16));
pq_sendint(&buf, vec->unused, sizeof(int16));
for (i = 0; i < vec->dim; i++)
pq_sendfloat4(&buf, vec->x[i]);