Fix: upsert_edge funtion can not create properties with PostgreSQL AGE storage
This commit is contained in:
@@ -1463,12 +1463,14 @@ class PGGraphStorage(BaseGraphStorage):
|
|||||||
MATCH (target:base {entity_id: "%s"})
|
MATCH (target:base {entity_id: "%s"})
|
||||||
MERGE (source)-[r:DIRECTED]-(target)
|
MERGE (source)-[r:DIRECTED]-(target)
|
||||||
SET r += %s
|
SET r += %s
|
||||||
|
SET r += %s
|
||||||
RETURN r
|
RETURN r
|
||||||
$$) AS (r agtype)""" % (
|
$$) AS (r agtype)""" % (
|
||||||
self.graph_name,
|
self.graph_name,
|
||||||
src_label,
|
src_label,
|
||||||
tgt_label,
|
tgt_label,
|
||||||
edge_properties,
|
edge_properties,
|
||||||
|
edge_properties, # https://github.com/HKUDS/LightRAG/issues/1438#issuecomment-2826000195
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user