mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-15 17:16:56 +08:00
Updated comments [skip ci]
This commit is contained in:
@@ -198,8 +198,9 @@ halfvec_in(PG_FUNCTION_ARGS)
|
|||||||
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
||||||
errmsg("invalid input syntax for type halfvec: \"%s\"", lit)));
|
errmsg("invalid input syntax for type halfvec: \"%s\"", lit)));
|
||||||
|
|
||||||
/* Use strtof like float4in to avoid a double-rounding problem */
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
|
||||||
|
/* Postgres sets LC_NUMERIC to C on startup */
|
||||||
val = strtof(pt, &stringEnd);
|
val = strtof(pt, &stringEnd);
|
||||||
|
|
||||||
if (stringEnd == pt)
|
if (stringEnd == pt)
|
||||||
|
|||||||
@@ -268,8 +268,11 @@ sparsevec_in(PG_FUNCTION_ARGS)
|
|||||||
while (sparsevec_isspace(*stringEnd))
|
while (sparsevec_isspace(*stringEnd))
|
||||||
stringEnd++;
|
stringEnd++;
|
||||||
|
|
||||||
errno = 0;
|
|
||||||
pt = stringEnd;
|
pt = stringEnd;
|
||||||
|
errno = 0;
|
||||||
|
|
||||||
|
/* Use strtof like float4in to avoid a double-rounding problem */
|
||||||
|
/* Postgres sets LC_NUMERIC to C on startup */
|
||||||
value = strtof(pt, &stringEnd);
|
value = strtof(pt, &stringEnd);
|
||||||
|
|
||||||
if (stringEnd == pt)
|
if (stringEnd == pt)
|
||||||
|
|||||||
@@ -222,8 +222,10 @@ vector_in(PG_FUNCTION_ARGS)
|
|||||||
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
||||||
errmsg("invalid input syntax for type vector: \"%s\"", lit)));
|
errmsg("invalid input syntax for type vector: \"%s\"", lit)));
|
||||||
|
|
||||||
/* Use strtof like float4in to avoid a double-rounding problem */
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
|
||||||
|
/* Use strtof like float4in to avoid a double-rounding problem */
|
||||||
|
/* Postgres sets LC_NUMERIC to C on startup */
|
||||||
val = strtof(pt, &stringEnd);
|
val = strtof(pt, &stringEnd);
|
||||||
|
|
||||||
if (stringEnd == pt)
|
if (stringEnd == pt)
|
||||||
|
|||||||
Reference in New Issue
Block a user