jrgemignani commented on issue #1709:
URL: https://github.com/apache/age/issues/1709#issuecomment-2037711286
@mingfang From the example above I have a possible workaround for you while
I figure out what the issue is with the ids -
```
psql-16.1-5432-pgsql=# SELECT * FROM cypher('playground', $$ MATCH (u)
DELETE u $$) AS (u agtype);
u
---
(0 rows)
psql-16.1-5432-pgsql=# SELECT * FROM cypher('playground', $$ MATCH (u)
RETURN u $$) AS (u agtype);
u
---
(0 rows)
psql-16.1-5432-pgsql=# SELECT * FROM cypher('playground', $$
UNWIND [{first: 'jon', last: 'snow'}, {first: 'ned', last: 'stark'}, {first:
'jane', last: 'doe'}] AS map
MERGE (v:PERSON {first: map.first})
SET v=map
SET v=map
RETURN v
$$) AS (v agtype);
v
-----------------------------------------------------------------------------------------------------
{"id": 844424930132012, "label": "PERSON", "properties": {"last": "snow",
"first": "jon"}}::vertex
{"id": 844424930132013, "label": "PERSON", "properties": {"last": "stark",
"first": "ned"}}::vertex
{"id": 844424930132014, "label": "PERSON", "properties": {"last": "doe",
"first": "jane"}}::vertex
(3 rows)
psql-16.1-5432-pgsql=# SELECT * FROM cypher('playground', $$ MATCH (u)
RETURN u $$) AS (u agtype);
u
-----------------------------------------------------------------------------------------------------
{"id": 844424930132012, "label": "PERSON", "properties": {"last": "snow",
"first": "jon"}}::vertex
{"id": 844424930132013, "label": "PERSON", "properties": {"last": "stark",
"first": "ned"}}::vertex
{"id": 844424930132014, "label": "PERSON", "properties": {"last": "doe",
"first": "jane"}}::vertex
(3 rows)
psql-16.1-5432-pgsql=#
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]