mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-04 19:50:59 +08:00
Improved safety check [skip ci]
This commit is contained in:
@@ -900,7 +900,7 @@ sparsevec_l2_normalize(PG_FUNCTION_ARGS)
|
||||
|
||||
/* Safety check */
|
||||
if (j == newResult->nnz)
|
||||
break;
|
||||
elog(ERROR, "safety check failed");
|
||||
|
||||
newResult->indices[j] = result->indices[i];
|
||||
nx[j] = rx[i];
|
||||
|
||||
Reference in New Issue
Block a user