pgvector.git / summary / log / commit / refs

commit    0dc5fa2ccbe9185117dc428d193bb3d0093317f3
Author:   Andrew Kane <andrew@ankane.org>
Date:     Mon Oct 26 21:40:45 2026 +0000

    Use consistent style [skip ci]


src/sparsevec.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/sparsevec.c b/src/sparsevec.c index e06c28bf..e47f1f87 100644 --- a/src/sparsevec.c +++ b/src/sparsevec.c @@ -112,11 +112,9 @@ CheckIndex(int32 *indices, int i, int dim) int32 index = indices[i]; if (index < 0 || index >= dim) - { ereport(ERROR, (errcode(ERRCODE_DATA_EXCEPTION), errmsg("sparsevec index out of bounds"))); - } if (i > 0) { @@ -383,11 +381,9 @@ sparsevec_in(PG_FUNCTION_ARGS) int32 index = elements[i].index; if (index >= dim) - { ereport(ERROR, (errcode(ERRCODE_DATA_EXCEPTION), errmsg("sparsevec index out of bounds"))); - } if (i > 0 && index == elements[i - 1].index) ereport(ERROR, [parent: 69a3147385cd]