This is an automated email from the ASF dual-hosted git repository. mtaha pushed a commit to branch PG14 in repository https://gitbox.apache.org/repos/asf/age.git
commit 8262938ef763e7f1ab23082170fa054825364b0a Author: Moontasir Mahmood <[email protected]> AuthorDate: Sun May 18 15:56:39 2025 +0600 Fix CSV import for edge with one property (#2175) - start_index marks where property fields begin. For edges, it's 4. If start_index >= total_fields, create empty properties; otherwise, parse the properties. --- src/backend/utils/load/age_load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/utils/load/age_load.c b/src/backend/utils/load/age_load.c index 48fbd368..2a89f432 100644 --- a/src/backend/utils/load/age_load.c +++ b/src/backend/utils/load/age_load.c @@ -176,7 +176,7 @@ agtype* create_agtype_from_list_i(char **header, char **fields, agtype_in_state result; size_t i; - if (start_index + 1 == fields_len) + if (start_index >= fields_len) { return create_empty_agtype(); }
