You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by mt...@apache.org on 2025/10/17 18:11:19 UTC
(age) 02/06: Fix CSV import for edge with one property (#2175)
This is an automated email from the ASF dual-hosted git repository.
mtaha pushed a commit to branch PG15
in repository https://gitbox.apache.org/repos/asf/age.git
commit ca198daec250feda3d882f3542ba8e9001bfad7f
Author: Moontasir Mahmood <53...@users.noreply.github.com>
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();
}