mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-02 18:50:56 +08:00
Improved sparsevec input test [skip ci]
This commit is contained in:
@@ -291,6 +291,9 @@ sparsevec_in(PG_FUNCTION_ARGS)
|
||||
nnz++;
|
||||
}
|
||||
|
||||
while (sparsevec_isspace(*stringEnd))
|
||||
stringEnd++;
|
||||
|
||||
if (*stringEnd != '\0' && *stringEnd != '}')
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
||||
|
||||
Reference in New Issue
Block a user