mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-02 02:31:16 +08:00
Use pq_sendint instead of pq_sendint16 for Postgres < 11
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user