Improved input functions [skip ci]

This commit is contained in:
Andrew Kane
2024-04-13 11:09:59 -07:00
parent 9957ba6817
commit 23944302fe
6 changed files with 14 additions and 8 deletions

View File

@@ -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;

View File

@@ -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;