Use pointer for VARSIZE_ANY

This commit is contained in:
Andrew Kane
2023-11-09 17:50:28 -08:00
parent 3cf6f62900
commit fbb904ae2f
3 changed files with 3 additions and 3 deletions

View File

@@ -325,7 +325,7 @@ HnswSetElementTuple(HnswElementTuple etup, HnswElement element)
else
ItemPointerSetInvalid(&etup->heaptids[i]);
}
memcpy(&etup->vec, DatumGetPointer(element->value), VARSIZE_ANY(element->value));
memcpy(&etup->vec, DatumGetPointer(element->value), VARSIZE_ANY(DatumGetPointer(element->value)));
}
/*