pgvector.git / summary / log / commit / refs

commit    8a4845b52ea6d61322feb949512d2115e1087920
Author:   Andrew Kane <andrew@ankane.org>
Date:     Sat Apr 13 23:09:42 2024 +0000

    Fixed CI


src/sparsevec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sparsevec.c b/src/sparsevec.c index ff4138af..3a51b4d6 100644 --- a/src/sparsevec.c +++ b/src/sparsevec.c @@ -286,6 +286,8 @@ sparsevec_in(PG_FUNCTION_ARGS) (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE), errmsg("\"%s\" is out of range for type sparsevec", pnstrdup(pt, stringEnd - pt)))); + CheckElement(value); + /* Do not store zero values */ if (value != 0) { @@ -359,7 +361,6 @@ sparsevec_in(PG_FUNCTION_ARGS) rvalues[i] = values[i]; CheckIndex(result->indices, i, dim); - CheckElement(rvalues[i]); } PG_RETURN_POINTER(result); [parent: e14fdba8b354]