mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-01 18:21:16 +08:00
Improved error message and tests for sparsevec_in
This commit is contained in:
@@ -284,7 +284,7 @@ sparsevec_in(PG_FUNCTION_ARGS)
|
||||
if (errno == ERANGE && (value == 0 || isinf(value)))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
|
||||
errmsg("\"%s\" is out of range for type sparsevec", pt)));
|
||||
errmsg("\"%s\" is out of range for type sparsevec", pnstrdup(pt, stringEnd - pt))));
|
||||
|
||||
/* Do not store zero values */
|
||||
if (value != 0)
|
||||
|
||||
Reference in New Issue
Block a user