Skip to content

MERGE does not see 'x' as a valid reuse #979

@jrgemignani

Description

@jrgemignani

Describe the bug
The MERGE command doesn't see a valid case of variable reuse for a vertex.

How are you accessing AGE (Command line, driver, etc.)?
psql command line

What data setup do we need to do?
Setup shouldn't matter. However, this was done on an empty graph database.

What is the necessary configuration info needed?
AGE

What is the command that caused the error?
The following command fails, but the second 'x' should be seen as a valid reuse of 'x'. This command works successfully on Neo4j.

psql-11.5-5432-pgsql=# SELECT * FROM cypher('test', $$ MERGE (x:C)-[:A]->(x) RETURN x $$) as (r agtype);
ERROR:  multiple labels for variable 'x' are not supported
LINE 1: ...ELECT * FROM cypher('test', $$ MERGE (x:C)-[:A]->(x) RETURN ...
                                                             ^
psql-11.5-5432-pgsql=#

Expected behavior
It should create a vertex with a self loop.

Environment (please complete the following information):
current master branch

Additional context
None.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions