mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-03 03:00:56 +08:00
Improved input functions [skip ci]
This commit is contained in:
@@ -173,6 +173,10 @@ halfvec_in(PG_FUNCTION_ARGS)
|
||||
errdetail("Vector contents must start with \"[\".")));
|
||||
|
||||
str++;
|
||||
|
||||
while (halfvec_isspace(*str))
|
||||
str++;
|
||||
|
||||
pt = strtok(str, ",");
|
||||
stringEnd = pt;
|
||||
|
||||
|
||||
@@ -197,6 +197,10 @@ vector_in(PG_FUNCTION_ARGS)
|
||||
errdetail("Vector contents must start with \"[\".")));
|
||||
|
||||
str++;
|
||||
|
||||
while (vector_isspace(*str))
|
||||
str++;
|
||||
|
||||
pt = strtok(str, ",");
|
||||
stringEnd = pt;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user