Added element check to binary format and fixed segmentation fault with index creation - fixes #151

This commit is contained in:
Andrew Kane
2023-06-08 18:32:36 -07:00
parent b6430bae62
commit 1aea0dfcd8
2 changed files with 4 additions and 1 deletions

View File

@@ -330,7 +330,10 @@ vector_recv(PG_FUNCTION_ARGS)
result = InitVector(dim);
for (i = 0; i < dim; i++)
{
result->x[i] = pq_getmsgfloat4(buf);
CheckElement(result->x[i]);
}
PG_RETURN_POINTER(result);
}