mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-02 18:50:56 +08:00
Fixed vector to sparsevec conversion
This commit is contained in:
@@ -570,7 +570,7 @@ vector_to_sparsevec(PG_FUNCTION_ARGS)
|
||||
if (j == nnz)
|
||||
elog(ERROR, "safety check failed");
|
||||
|
||||
result->indices[j] = i;
|
||||
result->indices[j] = i + 1;
|
||||
values[j] = vec->x[i];
|
||||
j++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user