mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 23:26:55 +08:00
Updated comments [skip ci]
This commit is contained in:
@@ -270,7 +270,7 @@ sparsevec_in(PG_FUNCTION_ARGS)
|
|||||||
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
||||||
errmsg("invalid input syntax for type sparsevec: \"%s\"", lit)));
|
errmsg("invalid input syntax for type sparsevec: \"%s\"", lit)));
|
||||||
|
|
||||||
/* Keep value in int range for correct error message later */
|
/* Keep in int range for correct error message later */
|
||||||
if (index > INT_MAX)
|
if (index > INT_MAX)
|
||||||
index = INT_MAX;
|
index = INT_MAX;
|
||||||
else if (index < INT_MIN)
|
else if (index < INT_MIN)
|
||||||
@@ -359,7 +359,7 @@ sparsevec_in(PG_FUNCTION_ARGS)
|
|||||||
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
||||||
errmsg("invalid input syntax for type sparsevec: \"%s\"", lit)));
|
errmsg("invalid input syntax for type sparsevec: \"%s\"", lit)));
|
||||||
|
|
||||||
/* Keep value in int range for correct error message later */
|
/* Keep in int range for correct error message later */
|
||||||
if (dim > INT_MAX)
|
if (dim > INT_MAX)
|
||||||
dim = INT_MAX;
|
dim = INT_MAX;
|
||||||
else if (dim < INT_MIN)
|
else if (dim < INT_MIN)
|
||||||
|
|||||||
Reference in New Issue
Block a user