Fix: upsert_edge funtion can not create properties with PostgreSQL AGE storage

This commit is contained in:
yangdx
2025-04-24 11:09:34 +08:00
parent ffbe2a0c5d
commit 8d219ffa32

View File

@@ -1463,12 +1463,14 @@ class PGGraphStorage(BaseGraphStorage):
MATCH (target:base {entity_id: "%s"})
MERGE (source)-[r:DIRECTED]-(target)
SET r += %s
SET r += %s
RETURN r
$$) AS (r agtype)""" % (
self.graph_name,
src_label,
tgt_label,
edge_properties,
edge_properties, # https://github.com/HKUDS/LightRAG/issues/1438#issuecomment-2826000195
)
try: