mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-05 00:38:39 +00:00
Fixed conversion code in array_to_sparsevec [skip ci]
This commit is contained in:
1 parent
5a058d6218
commit
a0b8e5df18
1 file changed
+1
-1
+1
-1
@@ -747,7 +747,7 @@ array_to_sparsevec(PG_FUNCTION_ARGS)
|
||||
else if (ARR_ELEMTYPE(array) == NUMERICOID)
|
||||
{
|
||||
for (int i = 0; i < nelemsp; i++)
|
||||
nnz += IS_NOT_ZERO(DirectFunctionCall1(numeric_float4, elemsp[i]));
|
||||
nnz += IS_NOT_ZERO(DatumGetFloat4(DirectFunctionCall1(numeric_float4, elemsp[i])));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user