This is an automated email from the ASF dual-hosted git repository. jgemignani pushed a commit to branch PG17 in repository https://gitbox.apache.org/repos/asf/age.git
commit d38b2bdb7c2b054aa1476b87f8b417ff7a1bc330 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 815a53ba..41233ff1 100644 --- a/src/backend/utils/load/age_load.c +++ b/src/backend/utils/load/age_load.c @@ -157,7 +157,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(); }
